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.