Forum Discussion

gbreck's avatar
gbreck
New Contributor
9 years ago

.toFixed(2) function behaves differently than Javascript version

I have noticed that the expression language version of the toFixed function rounds up on “5” but the Javascript version in web coding does not. Is this intentional? I did some research and maybe the SnapLogic version is using the Java version: .setScale(2, BigDecimal.ROUND_HALF_UP) for example.

2 Replies

No RepliesBe the first to reply