
On CRM form I am trying to sum few fields using XRM and comparing same with one field but JavaScript by default will add all trailing zeros
Found below article which is bit complicated
is there easy way to truncate the number to 2 decimal points?
*This post is locked for comments
I have the same question (0)CRM do not support Math.Round function as in JavaScript does
I found a workaround using toFixed(2)
Example:
var x = "8.20000003"
x.toFixed(2); will output 8.20