Preventing Truncation of Decimal and Floating Point Fields

The precision used when converting and storing data entered by the user is controlled by the picture string for the field. For example, if you specify the picture "#####@##", nothing prevents the user from entering "123.4567". When the user leaves the field and the field entry is validated, the entry will be stored and redisplayed in the field as " 123.45".

Truncation of the user's entry when necessary is the default. To prevent such truncation problems, you can do one of two things:


Home Contents Previous Next