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 #1107

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1107  Little question about variables

16/02/2005 @ 17:01
by Lugato

Anonymous



Hi,

I make a little programm:

BEGIN
E = 0
print E
E = 10
print E
E = 100
print E
C = waitevent
END

When I run the programm the value of E variable is 1.0000xxxxxx !!!!

How can I create a variable with E = 10 and not E = 1.00xxxxxxx
  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
--------
16/02/2005 @ 17:26
by Karan

Anonymous

visitor
Use 'Print E Using 0'
rather than 'Print E'
Note that it is a Zero and not a capital 'O'
Write to Karan   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
--------
16/02/2005 @ 17:35
by Lugato

Anonymous

visitor
?????

To resume the question

How I can set a variable E=100 to Integer, because when I print the "E" the result is a Real number !!

  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
--------
16/02/2005 @ 19:53
by Khertan

Anonymous

visitor
In basic you don t have nor integer nor real ... all number are numerical ...

But when you display your number many basic interpreter show only signifiant value ... but in izibasic all value are printed ... so if you don t want all this value ... don t show it ... use like Karan say ... just use PRINT E USING 0
Write to Khertan   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 ^