Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1107
Little question about variables
16/02/2005 @ 17:01 by Lugato
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
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
visitor
Use 'Print E Using 0' rather than 'Print E' Note that it is a Zero and not a capital 'O'
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
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 !!
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
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
topic active
topic closed
Sticky
New message -
Correct message
Close topic
Make sticky