Problem

How do I format the value of a number with 2 decimal places


Solution

To format the numbers we can use the following code:

var dta = dataweb.util.DataFormatter.format(<number>, "Number:#0.00", <locale>);

Published in Mon, 27 December 2010 16:08