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

Liviu Chircu notifications at github.com
Wed Mar 23 17:19:20 CET 2016


Well, with your initial patch, it would return `0`, while hiding the error. I consider this to be the correct approach from a scripting perspective, especially since transformation errors are quite cumbersome.

Input errors can be caught beforehand, if needed, through the use of the regex operator, `=~`.

---
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-200420032
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160323/413d42a5/attachment.htm>


More information about the Devel mailing list