Voting: 
Vote up!
0 Votes
1 Replies
Answered

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)

eg.

var x = 5.6789

var y = x.toFixed(2)

Answered by: Mar 14, 2017 22:55 EDT