11-09-2006 04:26 AM
11-09-2006 05:29 AM
I used to do a pretty lengthy prodedure to do this.
First I would convert the numeric value to a fractional string ( using convert to fractional and exponential string function) with precision set as 2
And then, convert it back to numeric ( using convert fractiona exponential string to number function) an get a floating integer value truncated to 2 digit precision.
Not a elegant method, but it worked for me ![]()
11-09-2006 08:57 AM
Similar idea if you're sure your numbers won't overflow: multiply by 1000, round to int, compare with a range that is similarly scaled by 1000 & rounded.
-Kevin P.
11-20-2006 11:32 PM
Thanks Devchander. It worked fine. Its a roundabout way, still fine. Thansk once again.
Kousy
11-21-2006 12:27 AM