WinStudio

DECIMALPOINT Keyword

Applies To

Form components with the data type DECIMAL.

Property defaults with the data type DECIMAL.

Component properties: Data type and format.

Description

Specifies the minimum number of digits to the right of the decimal point.

Syntax

DECIMALPOINT( integer )

Part

Description

integer Expression that evaluates to an integer specifying the minimum number of digits to the right of the decimal point.

Remarks

The DECIMALPOINT keyword affects only the visual format of values in WinStudio forms. With the specification DECIMALPOINT( n ), WinStudio appends zeros to the value of a component so the number of digits to the right of the decimal point is n. If the value does not have a decimal point, WinStudio appends a decimal point and n zeros to the right of it. If the value has at least n digits to the right of the decimal point, WinStudio does not change the value.

The DECIMALPOINT keyword can serve as a parameter of the DEFAULTFORMAT keyword in data-type specifications. See DEFAULTFORMAT, COMMA, and COMMAS in Related Topics.

Example

A component value with the following format specification displays two digits to the right of the decimal point:

DEFAULTFORMAT(DECIMALPOINT(2))


Related Topics

AUTOIME Keyword

BACKCOLOR Keyword

BLOBFORMAT Keyword

COMMA Keyword

COMMAS Keyword

DATATYPE Keyword

DATE Keyword

DATETIME Keyword

DECIMAL Keyword

DEFAULTFORMAT Keyword

FONT Keyword

FORECOLOR Keyword

JUSTIFY Keyword

MASK Keyword

TIME Keyword

TRUNCATEDECIMAL Keyword