pycnnum icon indicating copy to clipboard operation
pycnnum copied to clipboard

Feature suggestion: add `use_ones` option for 1x numbers

Open wdscxsj opened this issue 7 years ago • 1 comments

Could you add a use_ones option for 1x numbers, or adjust the current behavior a little bit? That is:

num2cn(16)  # '一十六' (current behavior)
num2cn(16, use_ones=False)   # '十六' (proposed change: feels more natural)
num2cn(116, use_ones=False)  # '一百一十六' (regardless of the value of use_ones)

Thanks!

wdscxsj avatar Dec 23 '18 05:12 wdscxsj

I will try to remember what I have done and implement it after that.

zeicold avatar Dec 23 '18 17:12 zeicold

fixed in the coming release

zeicold avatar Jun 01 '24 22:06 zeicold