Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1107
Little question about variables
le 16/02/2005 @ 17:01 par 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 Réponse n° 1 -------- le 16/02/2005 @ 17:26 par Karan
visiteur
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 Réponse n° 2 -------- le 16/02/2005 @ 17:35 par Lugato
visiteur
?????
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 Réponse n° 3 -------- le 16/02/2005 @ 19:53 par Khertan
visiteur
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