Description Usage Arguments Value Functions Details Warnings References See Also Examples
Functions to convert between Chinese and Arabic numerals.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
the Arabic/Chinese numerals to be converted, or a vector of them. The absolute value must not be greater than 1e+18.
the language of the Chinese numerals.
the scale naming system to be enforced. See the ‘Details’ section for the list of supported modes.
logical: should the financial numerals be used (daxie shuzi)?
logical: should the numerals be converted literally? (e.g. 721 to be converted to "qi er yi" instead of "qibai ershiyi" and vice versa)
logical: should the return result with one scale character only? (e.g. 1.5e+08 as "yi dian wuyi" instead of "yiyi wuqianwan")
c2num returns a numeric vector.
num2c returns a character vector.
c2num: Convert Chinese Numerals to Arabic Numerals.
num2c: Convert Arabic Numerals to Chinese Numerals.
The following scale naming systems are supported:
"casual": the casual naming system used outside of mainland
China, i.e. 1e+09 is referred to as "yi zhao".
"casualPRC": the casual naming system used in mainland China,
i.e. 1e+9 is referred to as "yi wanyi".
the SI prefix system used in Taiwan as stipulated in the document
Names, Definitions and Symbols of the Legal Units of Measurement and
the Decimal Multiples and Submultiples.
SI prefix system used in mainland China as stipulated in the document
China Statutory Measurement Units.
a variant of
"SIprefixPRC" with long prefixes, e.g. 1e+09 is
referred to as "yi jika" instead of "yi ji".
implements a “myriad scale” with an interval of 1e+04 for large numbers,
i.e. "yi" is 10,000 times of "wan", which is different from
some of the interval systems used in ancient Chinese writings.
This package supports conversion of numbers with absolute value not greater than 1e+18. Note that numbers in R are in double precision that carries approximately 16 significant digits. The conversion accuracy for numbers beyond this limit is therefore not guaranteed.
The standard for mode
"SIprefix" Names, Definitions
and Symbols of the Legal Units of Measurement and the Decimal Multiples and
Submultiples is available from
The standard for mode
"SIprefixPRC" China Statutory
Measurement Units is available from
Functions for detetction and extraction
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.