help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cell2csv (io package): Higher precision of floating point numbers?


From: Martin Kunz
Subject: Re: cell2csv (io package): Higher precision of floating point numbers?
Date: Wed, 24 Aug 2016 21:01:01 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Am 24.08.2016 um 17:40 schrieb Ozzy Lash:
You may need to increase the size of the tmp variable (right above the sprintf).  With a precision of 16 I think you could get values like:

x.xxxxxxxxxxxxxxxxE-xxx

which would have 23 characters plus the trailing null.  I'm not sure if it could get bigger than that.

Bill

Good point! Additionally, the number could be negative, so tmp should be 25 characters long.

Martin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]