octave-maintainers
[Top][All Lists]
Advanced

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

Re: Single/Double precision NA values


From: John W. Eaton
Subject: Re: Single/Double precision NA values
Date: Tue, 29 Jul 2008 14:55:17 -0400

On 29-Jul-2008, dbateman wrote:

| 
| 
| 
| John W. Eaton wrote:
| > 
| > On 29-Jul-2008, David Bateman wrote:
| > 
| > | My current patch translates the old NA values to the new internal 
| > | representation when reading files, though I can't remember if fread does 
| > | it as well. However the code writes the new NA values to the files.
| > 
| > It doesn't.  I looked, but I don't see a convenient place to insert
| > the conversion.
| > 
| > I've applied the patch anyway, as it seems useful to have both
| > NA ("single") and single (NA) work correctly.
| > 
| > 
| 
| Ok, then I'll try and supply a patch for fread as well later.

Doing that seemed tricky to me because fread is currently implemented
using some template functions and it must handle floating point format
conversions.  It wasn't clear to me where the NA conversion should go.

jwe


reply via email to

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