1Data::IEEE754(3)      User Contributed Perl Documentation     Data::IEEE754(3)
2
3
4

NAME

6       Data::IEEE754 - Pack and unpack big-endian IEEE754 floats and doubles
7

VERSION

9       version 0.02
10

SYNOPSIS

12         use Data::IEEE754 qw( pack_double_be unpack_double_be );
13
14         my $packed = pack_double_be(3.14);
15         my $double = unpack_double_be($packed);
16

DESCRIPTION

18       This module provides some simple convenience functions for packing and
19       unpacking IEEE 754 floats and doubles.
20
21       If you can require Perl 5.10 or greater then this module is pointless.
22       Just use the "d>" and "f>" pack formats instead!
23
24       Currently this module only implements big-endian order. Patches to add
25       little-endian order subroutines are welcome.
26

EXPORTS

28       This module optionally exports the following four functions:
29
30       •   pack_float_be($number)
31
32       •   pack_double_be($number)
33
34       •   unpack_float_be($binary)
35
36       •   unpack_double_be($binary)
37

CREDITS

39       The code in this module is more or less copied and pasted from
40       Data::MessagePack's "Data::MessagePack::PP" module. That module was
41       written by Makamaka Hannyaharamitu. The code was then tweaked by Dave
42       Rolsky, so blame him for the bugs.
43

SUPPORT

45       Please submit bugs to the CPAN RT system at
46       http://rt.cpan.org/NoAuth/Bugs.html?Dist=Data-IEEE754 or via email at
47       bug-data-ieee754@rt.cpan.org.
48
49       Bugs may be submitted through
50       <https://github.com/maxmind/Data-IEEE754/issues>.
51

AUTHOR

53       Dave Rolsky <autarch@urth.org>
54

CONTRIBUTORS

56       •   Dave Rolsky <drolsky@maxmind.com>
57
58       •   Greg Oschwald <goschwald@maxmind.com>
59
61       This software is Copyright (c) 2017 by MaxMind, Inc.
62
63       This is free software, licensed under:
64
65         The Artistic License 2.0 (GPL Compatible)
66
67
68
69perl v5.34.0                      2021-07-22                  Data::IEEE754(3)
Impressum