CCS Standardfunction   PrintFloat [Str]
 

PrintFloat [Str]

Value [Dec]

Characters [INT]

Decimal_Places [INT]

Description of Function

Represents a floating-point value as a formatted string.

Testing Points

None

Parameters

Value

Value (or variable containing the floating-point value) to be represented as a formatted string.

Characters

Maximum number of characters to be used to represent the value as a string. If the number specified is insufficient, an error message is returned. Otherwise, only as many characters as necessary are used. If no figure is specified, the string length is not checked.

Decimal_Places

Specifies the number of decimal places to be shown. The value is not rounded up or down.

Examples

PrintFloat

123.456789,10,2

123.456789 Æ 123.45

PrintFloat

10.12345,10,3

10.123