You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to introduce standard mathematical round function, or introduce switch to change behavior of $round()
Expected output:
$roundX(11.5) => 12 $roundX(12.5) => 13
We are using jsonata for financial calculations where current behavior is not desired and we have to do obscure transformations because of current behavior :(
Thanks
Docs:
This function uses the Round half to even strategy to decide which way to round numbers that fall exactly between two candidates at the specified precision. This strategy is commonly used in financial calculations and is the default rounding mode in IEEE 754.
Is it possible to introduce standard mathematical round function, or introduce switch to change behavior of
$round()
Expected output:
We are using jsonata for financial calculations where current behavior is not desired and we have to do obscure transformations because of current behavior :(
Thanks
Docs:
SRC:
https://github.com/jsonata-js/jsonata/blob/master/src/functions.js#L1303
The text was updated successfully, but these errors were encountered: