14.3. toExponential()

The toExponential() service returns a string representing the original number in exponential notation. Use the parameter to specify the number of decimal places. The default is four decimal places.

Table 14.3: Example

M2DocNumberType
{ m:node.number }0.0081444Numeric
{ m:node.number.toExponential() }8.1444E-3String
{ m:node.number.toExponential(1) }8.1E-3String
{ m:node.number.toExponential(2) }8.14E-3String
{ m:node.number.toExponential(3) }8.144E-3String