Important! A new Community experience launched on September 26, 2017. Read more about it here or continue to Base Camp.
Vote up!
0 Votes
1 Replies

Float Number

Question asked by Daniele Benericetti on Mar 09, 2017 11:53 EST

Hi, How to truncate a float number to decimal places? I don’t find the right APIs I have a problem in subtraction. Thanks Daniele

Kony Answered Certificate
Vote up!
0 votes
Vote down!

You can use the Javascipt api toFixed(decimalPlaces)


var x = 5.6789

var y = x.toFixed(2)

Answered by: Mar 14, 2017 22:55 EDT