Data::IEEE754(3pm)
β¨ Data::IEEE754 β¨
okay bestie, welcome to Data::IEEE754 β a little Perl module from the User Contributed Perl Documentation corner of the world that packs and unpacks big-endian IEEE754 floats and doubles. that's the whole vibe. π
πΈ VERSION πΈ
version 0.02 β she's a baby, she's tiny, she's doing her best π
π¦ SYNOPSIS π¦
use Data::IEEE754 qw( pack_double_be unpack_double_be );
my $packed = pack_double_be(3.14);
my $double = unpack_double_be($packed);
see how easy that is?? in, out, done. no thoughts, just bytes. β¨
π DESCRIPTION π
so basically this module gives u some simple convenience functions for packing and unpacking IEEE 754 floats and doubles. that's it. that's the job. π«Ά
real talk though β if you canrequirePerl 5.10 or greater, then this module is pointless. like, genuinely. just use thed>andf>pack formats instead! no cap. i'm telling u as a friend. π
right now this module only implements big-endian order. patches to add little-endian order subroutines are welcome β bestie, if u got the code, send it in, we'd be obsessed π§
π EXPORTS π
this module optionally exports the following four functions:
pack_float_be($number)pack_double_be($number)unpack_float_be($binary)unpack_double_be($binary)
four icons. four legends. pick which ones u want in ur qw() and go off π
π CREDITS π
ngl, the code in this module is more or less copied and pasted from Data::MessagePack's Data::MessagePack::PP module. that module was written by Makamaka Hannyaharamitu. then the code was tweaked by Dave Rolsky, so blame him for the bugs πβ¨ (affectionate)
π SUPPORT π
got a bug? please submit it to the CPAN RT system at http://rt.cpan.org/NoAuth/Bugs.html?Dist=Data-IEEE754 or via email at bug-data-ieee754@rt.cpan.org. π
bugs may also be submitted through https://github.com/maxmind/Data-IEEE754/issues.
π AUTHOR π
Dave Rolsky <autarch@urth.org>
β CONTRIBUTORS β
- Dave Rolsky <drolsky@maxmind.com>
- Greg Oschwald <goschwald@maxmind.com>
π COPYRIGHT AND LICENSE π
this software is Copyright (c) 2017 by MaxMind, Inc.
this is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
and that's the whole page, bestie π¦ this was Data::IEEE754, page 3 of the perl manual, served up fresh from perl v5.36.0 on 2022-12-02. go forth and pack ur doubles. periodt π πΈ
π¦ where this page comes from
- debian bookworm: libdata-ieee754-perl 0.02-2 Β· Artistic-2.0
- debian trixie: libdata-ieee754-perl 0.02-2 Β· Artistic-2.0
- ubuntu noble: libdata-ieee754-perl 0.02-2 Β· Artistic-2.0
- ubuntu resolute: libdata-ieee754-perl 0.02-2 Β· Artistic-2.0
- ubuntu stonking: libdata-ieee754-perl 0.02-2 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms