|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1547 |
Negative variables |
le 05/06/2007 @ 20:37 par Valentin
|
Hello
I am a new user of IziBasic, and I am trying to test a cuadratic equation, so when I put:
x = -b + sqrt(b^2-(4*a*c)
a sintax Error exist.
And when I tryed to use NUMFIELD I can't put a negative value
What I doing wrong?
Thanks for your help |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 05/06/2007 @ 22:10 par aldweb
visiteur |
Hello Valentin,
Try something like this:
x=b^2-4*a*c : x=sqrt(x)-b It is expected that sqrt(b^2-4*a*c) returns a syntax error as only a sqrt(x) kind of syntax is valid in iziBasic. Now, x=-b+sqrt(x) should not return a syntax error, I don't get why it does in this specific case. Maybe one fix to apply somewhere in the math parser...
Cheers, aldweb
|
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2 -------- le 06/06/2007 @ 22:37 par Valentin
visiteur |
Hola
Thank s for your response, I am really enjoing to programing in IziBasic,
When I use a NUMFIELD I can´t write a negative number on this field. (I am using ViziBasic)
Do I miss somthing?
Thanks Again Valentin |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3 -------- le 10/06/2007 @ 18:58 par aldweb
visiteur |
Hello Valentin,
NUMFIELD only works with positive numbers, this is a limitation of the underlying Palm OS API call, not an iziBasic bug.
To proceed with negative numbers in fields, give a look to Topic #1534.
Cheers, aldweb
|
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4 -------- le 11/06/2007 @ 15:35 par Valentin
visiteur |
Thanks, now it works. (Was an obvious solution if I was reading carefuly the manual) |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 5 -------- le 12/06/2007 @ 21:59 par aldweb
visiteur |
(indeed...)
Cheers, aldweb
|
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|