nrchan / chinese-number-converter Goto Github PK
View Code? Open in Web Editor NEWConvert between Chinese and Arabic numerals.
License: MIT License
Convert between Chinese and Arabic numerals.
License: MIT License
很棒的函数!在Sublime Text 4 中作为插件也运行很好(直接copy到Package/User目录下),和 Reg Replace 插件的plugin也协调工作很好。
全角中文的 “0-9”能识别转换吗?
在转换某些网文的章节编号时,发现有些用“廿niàn”、“卅sà”代替了20、30,如果能兼容就更方便了。谢谢!
㊟ 至于40卌xì、50圩、60圆、70进、80枯,等很少见。
我用chinese2number的输入主要来自正则表达式的搜索结果,偶尔会有一些不太规范的情况,比如“百八十”人、十之“八九”、“三五十”个,不管“三七二十一”,这些都是日常说法,偶尔会出现在需要转换的数字序列中,此时,双引号中的数字并不符合转数字功能的语言表达习惯,这种情况是不是可以抛出个异常?当然不转换是我需要的。谢谢!!
应该是 67000,程序的返回值是60007.0。六百七、六千七都是正确的。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.