decimalSymbol

The decimalSymbol build descriptor option specifies a character to be used as the decimal symbol at runtime. If you specify a value for this option, specify a compatible value for the separatorSymbol build descriptor option.

When you generate any COBOL program that does not use print forms, the following statements apply:

When you generate a COBOL program that uses print forms, and you do not specify the decimalSymbol build descriptor option, a period is used.

When you are generating Java™ code, the decimalSymbol build descriptor option assigns a character to the vgj.nls.number.decimal Java runtime property if the genProperties build descriptor option is set to GLOBAL or PROGRAM. If you do not specify the decimalSymbol build descriptor option, the character is determined by the locale associated with the vgj.nls.code Java runtime property.

The decimalSymbol build descriptor option does not affect numbers in JSF handlers. By default, JSF handlers use the client's locale to determine the appropriate decimal symbol. You can override the default locale with the sysLib.setLocale() system function. You can find more information on this and other system functions in the EGL Language Reference.

The value can be no more than one character.

When you assign a number to a CHAR type field, the decimal symbol in that number must match the current decimal symbol in the runtime environment. If the symbols do not match, an error will result.


Feedback