Number::Format::BigFloat - Format Math::BigFloat number
This document describes version 0.001 of Number::Format::BigFloat (from Perl distribution Number-Format-BigFloat), released on 2017-12-09.
use Number::Format::BigFloat qw(format_number); format_number(1.1); # => "1.10" format_number(1.1, {decimal_digits=>20}); # => "1.10000000000000000000" format_number("1.123456789012345678901", {decimal_digits=>20}); # => "1.12345678901234567890"
None exported by default but all of them exportable.
Format $num. $num will be converted to Math::BigFloat instance first. Will return $num as-is if $num is not expressable as decimal notation number.
$num
Known options:
thousands_sep => str (default: ",")
decimal_point => str (default: ".")
decimal_digits => int (default: 2)
Please visit the project's homepage at https://metacpan.org/release/Number-Format-BigFloat.
Source repository is at https://github.com/perlancar/perl-Number-Format-BigFloat.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Number-Format-BigFloat
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Other number formatting modules: Number::Format.
Math::BigFloat
perlancar <perlancar@cpan.org>
This software is copyright (c) 2017 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Number::Format::BigFloat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Number::Format::BigFloat
CPAN shell
perl -MCPAN -e shell install Number::Format::BigFloat
For more information on module installation, please visit the detailed CPAN module installation guide.