Hi

Currently in data mapper, the multiplication of -2 * 0 results in -0.
Ideally in basic mathematics the value zero should not have any - or +
marking on it. I have reported [1] regarding this and according to jira's
comments if this is to be fixed the -0 should be converted to string and
then again to a number and it is shown as a concern there that this will
have a performance impact due to unnecessary operations.

Signed zero itself is used for some mathematical operations[2]  but
seemingly there is no such operation that uses signed zero available in
data mapper currently. So rather than shipping signed zero, can we ship it
to adhere the basic mathematics (if there's no hidden usage of signed -0
that is) because first impression matters and first impression depends on
minor things like these as well.

[1] https://wso2.org/jira/browse/DEVTOOLESB-627
[2] https://en.wikipedia.org/wiki/Signed_zero

Best Regards
Erandi
-- 
*Chathurika Erandi*
Senior Software Engineer,
WSO2 Inc.

*E-mail:* chathuri...@wso2.com
*Mobile: *+94714 328 612
*Blog*: chathurikaerandi.blogspot.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to