Specifying the Character Used as a Decimal Separator

Decimal and floating point numbers generally contain a decimal character that marks the division between the ones place and the tenths place in the number. The symbol used as the decimal character in the U.S. is the period or "decimal point."

There is a global variable in the Vermont Views system that stores the value of the character to be used as the decimal separator. Vermont Views recognizes this character as valid during picture validation, data conversion, and field validation.

Designer: You cannot change the default system decimal separator from within the Designer; it must be done in code.

Code: The default system decimal character is a period. You can change this default with the set environment decimal separator character function, se_decseparator():

se_decseparator(dec_ch)

UCHAR dec_ch;        /* Character to use for decimal separator        */


Home Contents Previous Next