|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1547 |
Negative variables |
05/06/2007 @ 20:37 by 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
Answer n° 1 -------- 05/06/2007 @ 22:10 by aldweb
visitor |
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
Answer n° 2 -------- 06/06/2007 @ 22:37 by Valentin
visitor |
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
Answer n° 3 -------- 10/06/2007 @ 18:58 by aldweb
visitor |
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
Answer n° 4 -------- 11/06/2007 @ 15:35 by Valentin
visitor |
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
Answer n° 5 -------- 12/06/2007 @ 21:59 by aldweb
visitor |
(indeed...)
Cheers, aldweb
|
|
|
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky
|
|