Ondigit and Offdigit

Top  Previous  Next

Controls the internal precision of numbers.  Sometimes a GAMS problem has to be moved from a machine with higher precision to one with lower precision.  Instead of changing numbers with too much precision the $Offdigit tells GAMS to use as much precision as possible and ignore the rest of the number.  It is employed using the syntax

 

$Offdigit

or

$Ondigit

Notes:

If the stated precision of a number exceeds the machine precision an error will be reported.  For most machines, the precision is 16 digits.
The default setting is $Ondigit.
Ondigit causes GAMS to change numbers to fit machine precision.