aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1547

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 1547  Negative variables

05/06/2007 @ 20:37
by Valentin

Anonymous



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
Write to Valentin   Post an answer  Top

[]   


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

Anonymous

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

Write to aldweb   Post an answer  Top

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

Anonymous

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
Write to Valentin   Post an answer  Top

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

Anonymous

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
Write to aldweb   Post an answer  Top

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

Anonymous

visitor
Thanks, now it works. (Was an obvious solution if I was reading carefuly the manual)
Write to Valentin   Post an answer  Top

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

Anonymous

visitor
(indeed...)

Cheers,
aldweb
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^