GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Lingua::ZH::Numbers::Currency(3) User Contributed Perl Documentation Lingua::ZH::Numbers::Currency(3)

Lingua::ZH::Numbers::Currency - Converts currency values into their Chinese string equivalents

This document describes version 0.01 of Lingua::ZH::Numbers::Currency, released November 23, 2002.

    # OO Style
    use Lingua::ZH::Numbers::Currency 'big5';
    my $shuzi = Lingua::ZH::Numbers::Currency->new( 123 );
    print $shuzi->get_string;

    my $lingyige_shuzi = Lingua::ZH::Numbers::Currency->new;
    $lingyige_shuzi->parse( 7340 );
    $chinese_string = $lingyige_shuzi->get_string;

    # Function style
    print currency_to_zh( 345 );        # automatically exported

    # Change output format
    Lingua::ZH::Numbers::Currency->charset('gb');

This module is a subclass of Lingua::ZH::Numbers; it provides a different set of characters used in currency numbers as used in financial transactions. All five representation systems (charsets): "traditional", "simplified", "big5", "gb" and "pinyin" are still supported, although the "pinyin" variant is identical to the one used in Lingua::ZH::Numbers.

You can also use this module in a functionnal manner by invoking the "currency_to_zh()" function.

Fraction currency numbers are unsupported; you have to round the number before passing it for conversion, via "int()" or "s/\.(.*)//".

Lingua::ZH::Numbers::Currency

Dieter Simader for suggesting me to write this module.

Autrijus Tang <autrijus@autrijus.org>

Copyright 2002 by Autrijus Tang <autrijus@autrijus.org>.

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

See <http://www.perl.com/perl/misc/Artistic.html>

2004-09-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.