View source: R/01-vec_numeric.R
num_to_string_AcctFormat | R Documentation |
将数字按会计格式进行处理
num_to_string_AcctFormat(
x,
divided_value = 1,
round_digit = 2,
seperator = ",",
seperator_digit = 3,
currency_symbol = ""
)
x |
数据 |
divided_value |
如果是万元版则是10000 |
round_digit |
保留小数位数一般为2位小数 |
seperator |
千分位或万分位 |
seperator_digit |
千分位或万分位 |
currency_symbol |
币货符号 |
返回值
num_to_string_AcctFormat()
num_to_string_AcctFormat(1234)
num_to_string_AcctFormat(1234.12)
num_to_string_AcctFormat(1234.123,currency_symbol = '$')
num_to_string_AcctFormat(123123123.123)
num_to_string_AcctFormat(123123123.123,divided_value = 10000)
num_to_string_AcctFormat(c(123123123.123,123321321.13),divided_value = 10000)
num_to_string_AcctFormat(c(123123123.123,123321321.13),divided_value = 10000,currency_symbol = '$')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.