14.2. toFixed()

With the toFixed() service, you specify the number of decimal places. The number is rounded up accordingly. The default is 0, which equals no decimal places.

Table 14.2: Example

M2DocNumberType
{ m:node.number }0.0081444Numeric
{ m:node.number.toFixed() }0String
{ m:node.number.toFixed(1) }0.0String
{ m:node.number.toFixed(2) }0.01String
{ m:node.number.toFixed(3) }0.008String
{ m:node.number.toFixed(4) }0.0081String