[SR-Users] Float Comparison

Klaus Darilion klaus.mailinglists at pernau.at
Wed Jan 19 07:50:45 CET 2011



Am 18.01.2011 21:26, schrieb Brandon Armstead:
> Hello,
>
>     Is there anything special that needs to be done for float comparison?
>
> For example:
>
> if([5.5 >= 4.3]) ....
>
> or
> if(5.5 > 4.3) ....
>
> The conditional does not seem to be coming back as true like it should?

I have no idea if floating point comparison is supported, but you could 
multiple the values (e.g. * 10000) before comparison

regards
klaus



More information about the sr-users mailing list