[SR-Users] Float Comparison

Brandon Armstead brandon at cryy.com
Tue Jan 18 21:26:21 CET 2011


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?

This is simply an example... the precision in the actual case is different
(longer decimal places).


Thank you for all and any help in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110118/5a85c60e/attachment.htm>


More information about the sr-users mailing list