Re: Portable Ada floating-point binary I/O ?



"Gautier" <gautier@xxxxxxxxxxxxxxx> wrote in message
news:44f09ac3$1_3@xxxxxxxxxxxxxxxxxx
Hullo!
Does somebody know about a way of doing floating-point I/O which
is portable across architectures (endianesses etc.) and a little
bit more compact than the representation with digits ?
If yes, is there an open-source Ada package doing it ?
TIA, Gautier

I would suggest looking up XDR (the relevent one stands for "external data
representation").
Searching for XDR and Ada comes up with a few hits you might try looking
into.

I hope this helps,
Steve
(The Duck)

______________________________________________________________
Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm

NB: For a direct answer, e-mail address on the Web site!



.



Relevant Pages

  • Re: Ada decimal types
    ... The representation of the multiples of small can be anything that the ... It is possible for a compiler to reject specifying a small of 1.0e-6. ... Ada 83 compilers used to reject these because ...
    (comp.lang.ada)
  • Re: ANN: ASIS2XML 20041024a
    ... >> this is the Right Thing for an XML representation). ... All important UML tool can import XMI. ... higher than that of an Ada program. ...
    (comp.lang.ada)
  • Re: Enumeration representation enhancement proposal
    ... representation has no impact on comparison. ... Is not correct Ada. ... that of the original declaration of the enumeration. ... the order rule for enumeration representations. ...
    (comp.lang.ada)
  • Re: Avatox 1.0: Trouble with encoding in Windows
    ... representation (which is not defined by Ada anyway) is probably broken. ... Wide_Wide_String are defined in terms of Unicode. ... returning it in a particular Unicode encoding. ...
    (comp.lang.ada)
  • Re: Ada decimal types
    ... The representation of the multiples of small can be anything that the ... It is possible for a compiler to reject specifying a small of 1.0e-6. ... Ada 83 compilers used to reject these because ...
    (comp.lang.ada)