TRUNCATEDECIMAL keyword

Applies to

Form components, component classes, and property class extensions with the data type DECIMAL

Property defaults with the data type DECIMAL

Component properties: Data format

Description

Rounds decimal values to a set number of decimal places.

Syntax

TRUNCATEDECIMAL()

Remarks

The keyword rounds decimal values to the number of decimal places specified by 「DECIMALPOINT」. Numbers greater than 5 are rounded up. TRUNCATEDECIMAL corresponds to the [Round to Decimal Position] check box in the [Component] properties sheet and related dialog boxes.

TRUNCATEDECIMAL can serve as a parameter of the 「DEFAULTFORMAT」 keyword in data-format specifications.

関連トピック