Allow decimal point

Updated and reviewed January 2011

[ Type code = . ] If used with $ or H type and the decimal point is not entered, places the decimal point to right of last digit entered. For example, if "1234" is entered, it will be redisplayed as "1,234.00". Note that this code affects the action of the opcode parameter. When decimal points are allowed, default decimal points are inserted as actual characters into the returned field. If decimal points are not allowed, default decimal points are inserted in the display but not returned.

Note: prior to 5.1.1199, INFLD always used the "." character for the decimal point, regardless of the LDF (Language Definition File). As of 5.1.1199, you can add the TYPE code "u" to force it to use the decimal point character specified in the LDF. Note that even in the latter case, it will accept a "." from the keyboard as equivalent to the defined decimal point character.

See Also

•   defpt, to set the position of a default decimal point.

•   maxpt, to limit the number of digits past the decimal point.