count_as_word: Convert Large Counts into Friendly Text

Description Usage Arguments Value Examples

Description

Note - currently limited to .Machine$integer.max.

Usage

1
count_as_word(value, fmt = "%.1f")

Arguments

value

A single positive integer

fmt

Extra number formatting supplied to sprintf

Value

Returns a string with the power of a number replaced by the appropriate word.

Examples

1
2
3
count_as_word(100)
count_as_word(1000000)
count_as_word(1200000000)

newtux/humanize documentation built on May 25, 2019, 10:35 p.m.