WinStudio

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 Form Component Properties dialog box and related dialog boxes. See Formatting Numbers in Components for examples of rounding.

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


Related Topics

AUTOIME Keyword

BACKCOLOR Keyword

BLOBFORMAT Keyword

COMMA Keyword

COMMAS Keyword

DATE Keyword

DATETIME Keyword

DECIMAL Keyword

DECIMALPOINT Keyword

DEFAULTFORMAT Keyword

FONT Keyword

FORECOLOR Keyword

JUSTIFY Keyword

MASK Keyword

TIME Keyword