[OpenSIPS-Devel] [opensips] Make s.int also operate on floats/doubles by truncating them to an int (#836)

rrb3942 notifications at github.com
Tue Mar 22 21:03:40 CET 2016


My only question would be how should completely bogus input be handled (say the letter 'Z', with no numbers). It will return a -1 and set the int to 0, which would be the same result as the input '0.1231'. Should they be differentiated at script level?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/836#issuecomment-199994828
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160322/38a92309/attachment.htm>


More information about the Devel mailing list