On Tue, 16 Jul 2013 16:58:34 +0200 Lionel Cons wrote:
> On 16 July 2013 16:53, Glenn Fowler <[email protected]> wrote:
> >
> > On Sat, 13 Jul 2013 10:48:55 +0200 Lionel Cons wrote:
> >> Does SFIO's sfgetd() have support for C99 printf("%a") format?
> >
> > both
> > sfputu()/sfgetu() for integers
> > and
> > sfputd()/sfgetd() for floating point
> > use sfio-specific encodings
> Unfortunately that encoding predates IEEE754, i.e. there is no
> nan/-nan, working infinite, subnormal numbers or negative zero. That
> allows only for very very limited use.
good point
the floating point sign is encoded as a byte
0: positive
1: negative
we could retain these for backwards compatibility and use a leading 2
to mark IEEE754 binary interchange format, at the start just for
numbers not encodable by the old sfio format
do you have a www ref for the exact description of the binary interchange
format?
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users