Divides one number into another.
Divided into the contents of dst_num_var.
Sets the result to the specified number when a division by zero is attempted. If ON-ERROR is omitted and a division by zero is attempted, Production Reporting halts with an error message.
Rounds the result to the specified number of digits to the right of the decimal point. For float variables, this value can be from 0 to 15. For decimal variables, this value can be from 0 to the precision of the variable. For integer variables, this argument is not appropriate.
The source field is divided into the destination field and the result is placed in the destination. The source is always first, the destination always second.
When dealing with money-related values (dollars and cents), use decimal variables rather than float variables. Float variables are stored as double precision floating point numbers, and small inaccuracies can appear when dividing many numbers in succession. These inaccuracies can appear due to the way different hardware and software implementations represent floating point numbers.