|
Boost : |
From: frederic.bron_at_[hidden]
Date: 2008-01-07 13:15:08
This library is really intersting to have portable floating point numbers in text files but it would be really portable if you dealt with the representation of the exponent in scientific notation
because this is not clearly stated in the standard (i.e. the number of digits of the exponent is greater or equal to 2 but some compiler write 2 and some others 3 which makes non portable outputs).
example: 1.0e+003 or 1.0e+03.
Thank you for the update.
Regards,
F. Bron
boost-bounces_at_[hidden] a écrit sur 07/01/2008 18:32:30 :
> Hi,
>
> I have uploaded version 3 of the floating point utilities library tothe vault.
> The library is in the folder Math - Numerics.
>
> The library provides portable and optimized implementations
> of isnan, fpclassify, signbit etc.
> It also provides facets for portable handling of infinity and NaN in
> text streams.
>
> If you want text files with floating point numbers to be portable,
> and if the files may contain infinity or NaN,
> then you should use this library.
> This also applies to text serialization archives.
>
> Compared with version 2, there are only minor changes:
>
> 1. I have removed all use of partial template specialization
> and I have added BOOST_TYPENAME and BOOST_STATIC_CONSTANT macros.
> Now the library should work with older compilers, such as MSVC 6.5.
>
> 2. I now use the header boost/detail/endian.hpp.
> (I didn't before, because I didn't trust that header.
> But I now think it is better to use endian.hpp,
> and to fix any problems with the header as they show up.)
>
> 3. General code clean-up and simplification.
>
> 4. More discussion of portability issues in the docs.
>
> There are no changes to the interface.
>
> If anyone has time to test the library, I would be interested in the results.
>
> Thank you,
> Johan Råde
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Avis :
Ce message et toute pièce jointe sont la propriété d'Alcan et sont destinés seulement aux personnes ou à l'entité à qui le message est adressé. Si vous avez reçu ce message par erreur, veuillez le
détruire et en aviser l'expéditeur par courriel. Si vous n'êtes pas le destinataire du message, vous n'êtes pas autorisé à utiliser, à copier ou à divulguer le contenu du message ou ses pièces jointes
en tout ou en partie.
Notice:
This message and any attachments are the property of Alcan and are intended solely for the named recipients or entity to whom this message is addressed. If you have received this message in error
please inform the sender via e-mail and destroy the message. If you are not the intended recipient you are not allowed to use, copy or disclose the contents or attachments in whole or in part.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk