06-08-2007, 05:23 PM
I'm trying to allow the user to enter a floating point (real) value for use as a delay. Here's the code I'm using:
str s
double+ delay
inp s "Enter delay in [fractional] seconds" "" "0.5"
delay = val(s)
out "%4.1f" delay
The "out" produces the value " 0.0", which explains why none of the delays are working correctly.
Any hints?
Thanks!
Jon
str s
double+ delay
inp s "Enter delay in [fractional] seconds" "" "0.5"
delay = val(s)
out "%4.1f" delay
The "out" produces the value " 0.0", which explains why none of the delays are working correctly.
Any hints?
Thanks!
Jon