XPRBsetrealfmt
| XPRBsetrealfmt | 
  Purpose
 
  Synopsis
 
int XPRBsetrealfmt(XPRBprob prob, const char *fmt);
 
  Arguments
 
| 
     prob 
     | 
     Reference to a problem.
     | ||||
| 
     fmt 
     | 
     Format string (as used by the C function
     printf). Simple format strings are of the form
     %n where
     n may be, for instance, one of
     
 | 
  Return value
 
 0 if function executed successfully, 1 otherwise.
  Example
 
 This example sets the number printing format to 10 digits after the decimal point:
 
XPRBprob expl2;
expl2 = XPRBnewprob("example2");
XPRBsetrealfmt(expl2, "%.10f");
  Further information
 
 1. In problems with very large or very small numbers it may become necessary to change the printing format to obtain a more exact output. In particular, by changing the precision it is possible to reduce the difference between matrices loaded in memory into Xpress Optimizer and the output produced by exporting them to a file.
 
 2. This function can be used before any problem has been created (with first argument
 NULL). In this case the setting applies to all problems that are created subsequently.
 
  Related topics
 
 
