Variable: float
Posted: Fri Mar 28, 2008 6:29 pm
				
				How can I display a floating variable (with decimales?):
zahl.f = Val(InputRequester("Input number: ", "Input number: ", ""))
MessageRequester("The number is: ", Str(zahl))
If I input e.g. 3.14 (or 3,14) the result is 3. But it should be 3.14 (or 3.14). Why does PB returns an integer?
Thanks, Roland.
			zahl.f = Val(InputRequester("Input number: ", "Input number: ", ""))
MessageRequester("The number is: ", Str(zahl))
If I input e.g. 3.14 (or 3,14) the result is 3. But it should be 3.14 (or 3.14). Why does PB returns an integer?
Thanks, Roland.