Functiondojox.dtl.filter.strings.floatformat

dojo.require("dojox.dtl.filter.strings");
defined in dojox/dtl/filter/strings.js

If called without an argument, displays a floating point number as 34.2 -- but only if there's a point to be displayed. With a positive numeric argument, it displays that many decimal places always. With a negative numeric argument, it will display that many decimal places -- but only if there's places to be displayed.

Usage

function (value, arg) (view source)
parametertypedescription
value  
arg