TinyFloats

Convert to/from tiny float formats

NAME

TinyFloats - Convert to/from tiny float formats

SYNOPSIS

use TinyFloats;

my $bin16 = bin16-from-num(1e0);     # 0x3C00
my $num   = num-from-bin16(0xFBFF);  # -65504e0

DESCRIPTION

TinyFloats is a collection of simple conversion routines to help with storing floating point data in tiny float formats.

This very first version supports only conversion between native nums and the IEEE 754 binary16 format, AKA _Float16 in C, float16 in CDDL, and 7.25 in CBOR.

AUTHOR

Geoffrey Broadwell [email protected]

COPYRIGHT AND LICENSE

Copyright 2021 Geoffrey Broadwell

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

TinyFloats v0.0.1

Convert to/from tiny float formats

Authors

  • Geoffrey Broadwell

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • TinyFloats

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.