View on
MetaCPAN
Zakariyya Mughal > Unicode-Number-0.006 > Unicode::Number::System

Download:
Unicode-Number-0.006.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.006   Source   Latest Release: Unicode-Number-0.009

NAME ^

Unicode::Number::System - representation of a number system

VERSION ^

version 0.006

SYNOPSIS ^

  use Unicode::Number;

  my $u = Unicode::Number->new;
  # print out all the number systems
  say join "\n", map { $_->name } @{ $u->number_systems };

DESCRIPTION ^

This class is the representation of a number system that can be used for conversion by Unicode::Number. The list of number systems supported is given by the number_systems of Unicode::Number.

ATTRIBUTES ^

iso15924_code

Returns the ISO 15924 code for the number system's script.

name

Returns a string for the libuninum name of the number system.

convertible_in_both_directions

Returns a boolean.

If true, then the number system can be used to convert from strings to numbers and from numbers to strings (in libuninum terminology: "specific number systems").

If false, then the number system can only be used to convert strings to numbers. (in libuninum terminology: "cover terms").

maximum_value

Returns a Unicode::Number::Result with the largest representable value. This value may be unlimited and in that case we return a Unicode::Number::Result with a value of infinity (inf).

AUTHOR ^

Zakariyya Mughal <zmughal@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Zakariyya Mughal.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: