# Input data i data file vs printed input data in output file

**URL:** https://discuss.ampl.com/t/input-data-i-data-file-vs-printed-input-data-in-output-file/1941
**Category:** Support
**Tags:** data
**Created:** [October 2, 2024, 12:03pm UTC](https://discuss.ampl.com/t/input-data-i-data-file-vs-printed-input-data-in-output-file/1941 "2024-10-02T12:03:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Niknak](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@Niknak](https://discuss.ampl.com/u/Niknak)
#### Post date: [October 2, 2024, 12:03pm UTC](https://discuss.ampl.com/t/input-data-i-data-file-vs-printed-input-data-in-output-file/1941/1 "2024-10-02T12:03:35Z")

</div>

Hi,

I’m using AMPL with CPLEX on a server, and as part of the output file, I’ve setup the runfile such that the input data (parameters/sets) is also printed in the output file (.out). However, there are some differences in the values shown in the .out file contra .dat file, some are rounding effect, but some are strange and hard to categorize under rounding effect. For instance, a parameter with value “2260008.75” is printed out in .out as “2260010” or “3013345” in .dat is printed as “3013340”.  
I’m not quite sure where the problem can be and how to fix it; in other words, I’m not sure which value it is the AMPL/CPLEX is using to slove the model, the one in .dat (as expected) or the one shown in .out. While the differences are not huge, but that makes the results a bit uncertain as well given the observed circumstances of input data.

Any thoughts or suggestions?

---

<div class="post-metadata">

### Author: ![4er](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/4er/32/530_2.png) [@4er](https://discuss.ampl.com/u/4er)
#### Post date: [October 2, 2024, 4:32pm UTC](https://discuss.ampl.com/t/input-data-i-data-file-vs-printed-input-data-in-output-file/1941/2 "2024-10-02T16:32:22Z")

</div>

The default setting for the AMPL display command is to show numbers to 6 significant digits. Thus values with more than 6 significant digits are rounded to the first 6: 2260008.75 becomes 2260010, and 3013345 becomes 3013340.

You can use AMPL’s display\_precision to specify a different number of significant digits. For example, `option` `display_precision` `10;` will cause display to show the above examples as you expect. For more information about this and other display-related options, see our section on [Display Command Options](https://dev.ampl.com/ampl/options.html#display-command-options) in the [AMPL Options](https://dev.ampl.com/ampl/options.html) Guide.
