|
From: | Martin Kunz |
Subject: | Re: cell2csv (io package): Higher precision of floating point numbers? |
Date: | Wed, 24 Aug 2016 14:30:42 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Not that many people need so much precision. Any idea what number of digits are output by e.g., csvwrite ? Easy enough to test:
creates a file that contains:
i.e. a maximum of 16 significant digits. eps() is 2.2E-16, so csvwrite uses the full precision of double values. In the light of csvwrite's behaviour I would suggest
for the new cell2csv.cc . If users do not need this precision and would like to keep files small, they can always round floating numbers to the desired precision prior to writing them to a file. Cheers, Martin |
[Prev in Thread] | Current Thread | [Next in Thread] |