So, precision is not just for the result

Today’s small lesson

Change Field(#PCTFLT) To(#ANTSAL * 100 / #KTOTKOB) Precision(4 1) Round_Up(*YES)

only really works if #ANTAL is sufficiently small, that is, one digit. As I would probably have numbers up to a maximum of three digits, I changed the precision to 7 2 and (5 digits with 2 digits after the decimal point, as * 100 adds another 2 digits). Also, I know that #KTOTKOB can only be an integer and will always be larger than #ANTSAL.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s