Aion-Format
view release on metacpan or search on metacpan
See also:
* `Roman` is simple converter.
* `Math::Roman` is another converter.
* `Convert::Number::Roman` is OOP interface.
* `Number::Convert::Roman` is another OOP interface.
* `Text::Roman` convert standart and milhar roman numbers.
* `Roman::Unicode` use digits â (5 000), â (1000), and so on.
* `Acme::Roman` added support roman numerals in perl code (`I + II -> III`), but use `+`, `-` and `*` operations only.
* `Date::Roman` is Perl OO extension for handling roman style dates, but with arabic numbers (id 3 702).
* `DateTime::Format::Roman` is roman date formatter, but with arabic numbers (5 Kal Jun 2003).
## round ($number, $decimal)
Rounds a number to the specified decimal place.
```perl
round 1.234567, 2 # -> 1.23
round 1.235567, 2 # -> 1.24
```
lib/Aion/Format.md view on Meta::CPAN
See also:
* `Roman` is simple converter.
* `Math::Roman` is another converter.
* `Convert::Number::Roman` is OOP interface.
* `Number::Convert::Roman` is another OOP interface.
* `Text::Roman` convert standart and milhar roman numbers.
* `Roman::Unicode` use digits â (5 000), â (1000), and so on.
* `Acme::Roman` added support roman numerals in perl code (`I + II -> III`), but use `+`, `-` and `*` operations only.
* `Date::Roman` is Perl OO extension for handling roman style dates, but with arabic numbers (id 3 702).
* `DateTime::Format::Roman` is roman date formatter, but with arabic numbers (5 Kal Jun 2003).
## round ($number, $decimal)
Rounds a number to the specified decimal place.
```perl
round 1.234567, 2 # -> 1.23
round 1.235567, 2 # -> 1.24
```
lib/Aion/Format.pm view on Meta::CPAN
=item * C<Number::Convert::Roman> is another OOP interface.
=item * C<Text::Roman> convert standart and milhar roman numbers.
=item * C<Roman::Unicode> use digits â (5 000), â (1000), and so on.
=item * C<Acme::Roman> added support roman numerals in perl code (C<< I + II -E<gt> III >>), but use C<+>, C<-> and C<*> operations only.
=item * C<Date::Roman> is Perl OO extension for handling roman style dates, but with arabic numbers (id 3 702).
=item * C<DateTime::Format::Roman> is roman date formatter, but with arabic numbers (5 Kal Jun 2003).
=back
=head2 round ($number, $decimal)
Rounds a number to the specified decimal place.
round 1.234567, 2 # -> 1.23
round 1.235567, 2 # -> 1.24
t/aion/format.t view on Meta::CPAN
# See also:
#
# * `Roman` is simple converter.
# * `Math::Roman` is another converter.
# * `Convert::Number::Roman` is OOP interface.
# * `Number::Convert::Roman` is another OOP interface.
# * `Text::Roman` convert standart and milhar roman numbers.
# * `Roman::Unicode` use digits â (5 000), â (1000), and so on.
# * `Acme::Roman` added support roman numerals in perl code (`I + II -> III`), but use `+`, `-` and `*` operations only.
# * `Date::Roman` is Perl OO extension for handling roman style dates, but with arabic numbers (id 3 702).
# * `DateTime::Format::Roman` is roman date formatter, but with arabic numbers (5 Kal Jun 2003).
#
# ## round ($number, $decimal)
#
# Rounds a number to the specified decimal place.
#
done_testing; }; subtest 'round ($number, $decimal)' => sub {
::is scalar do {round 1.234567, 2}, scalar do{1.23}, 'round 1.234567, 2 # -> 1.23';
::is scalar do {round 1.235567, 2}, scalar do{1.24}, 'round 1.235567, 2 # -> 1.24';
#
( run in 0.279 second using v1.01-cache-2.11-cpan-05444aca049 )