places(
NUMBER
,
PLACES
)

The places( function converts a number to text with a specific number of places after the decimal point.


Parameters

This function has two parameters:

number – a numeric value.

places – number of places after the decimal point.


Description

This function converts a number to text with a specific number of places after the decimal point. The value is truncated (not rounded) to the number of places specified.

places(1.23456,10) ☞ 1.2345600000
places(1.23456,3) ☞ 1.234

Note: This function is equivalent to:

array(str(thenumber),1,".")+"."+(array(str(thenumber),2,".")+rep("0",theplaces))[1,theplaces]

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.