[Info-vax] Is this a Bug ?
StGallen
sengupta.suhas at gmail.com
Tue Apr 17 14:10:33 EDT 2012
> Re-reading your code, you're input is a string, not a DECIMAL data type, (dumb Dave, you
> assumed again), you can use Val() to convert it to a floating point number. As long as
> you have less than 14-15 digits to the left of the DP, then Fix() will give you a valid
> whole part of the number.
Thanks everybody and especially Dave for the FIX. I should have used FIX. However, since the input is a string and will always be > 0, I am comparing the integer part (using STR$ELEMENT) with "000000000000". FIX is a lot more elegant. Thanks!
More information about the Info-vax
mailing list