From help-request at octave dot org Tue Jun 14 09:45:07 2005 Subject: Re: Save produces large files From: Mike Miller To: David Bateman cc: =?iso-8859-1?Q?S=F8ren_Hauberg?= , Help-Octave List Date: Tue, 14 Jun 2005 09:37:19 -0500 (CDT) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-824023566-1118759839=:25496 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 14 Jun 2005, David Bateman wrote: > S=F8ren Hauberg a =E9crit : > >> a =3D zeros(3); a(5) =3D NaN; >> octave:25> save -float-binary test.data a >>=20 >> which gives me the following warning: >>=20 >> warning: save: some values too large to save as floats -- >> warning: save: saving as doubles instead >>=20 >> Btw. I'm using 2.1.71 on linux > > That's pretty stupid behaviour... Perhaps the test for whether data can= =20 > be saved as float needs to be updated to allow that NaN can be saved as= =20 > float..... How is NaN encoded? The "too large to save as floats" seems to imply that= =20 NaN is encoded as a large value. Is that the case? Mike ---559023410-824023566-1118759839=:25496-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------