Sign in

docs RPG Reference

Decimals and Commas

Decimals and Commas

Decimals and commas are in the same relative position in the edited output field as they are in the edit word unless they appear to the left of the first significant digit in the edit word. In that case, they are blanked out or replaced by an asterisk.

In the following examples below, all the leading zeros will be suppressed (default) and the decimal point will not appear unless there is a significant digit to its left.

Edit WordSource DataAppears in Edited Result as:
’␢␢␢␢␢␢␢‘0000072␢␢␢␢␢72
’␢␢␢␢␢␢␢.␢␢‘000000012␢␢␢␢␢␢␢␢12
’␢␢␢␢␢␢␢.␢␢‘000000123␢␢␢␢␢␢1.23