#numeral #convert #ethiopic #numbers

ethiopic-numerals

转换为埃塞俄比亚数字

1 个不稳定版本

0.1.0 2022年8月20日

#270值格式化

MIT 许可协议

9KB
199

ethiopic-numerals

一个将数字转换为埃塞俄比亚数字的算法。这是来自geez.org埃塞俄比亚数字算法的实现。测试用例来自这里

示例

0 => ""
1 => ""
2 => ""
3 => ""
4 => ""
5 => ""
6 => ""
7 => ""
8 => ""
9 => ""
10 => ""
20 => ""
30 => ""
40 => ""
50 => ""
60 => ""
70 => ""
80 => ""
90 => ""
100 => ""
500 => "፭፻"
10_000 => ""
42 => "፵፪"
78 => "፸፰"
18 => "፲፰"
1000 => "፲፻"
100_000 => "፲፼"
111 => "፻፲፩"
666 => "፮፻፷፮"
1_000_000 => "፻፼"
10_000_000 => "፲፻፼"
123 => "፻፳፫"
1111 => "፲፩፻፲፩"
1234 => "፲፪፻፴፬"
6666 => "፷፮፻፷፮"
1001 => "፲፻፩"
11111 => "፼፲፩፻፲፩"
111111 => "፲፩፼፲፩፻፲፩"

无运行时依赖