Skip to content
kanasimi edited this page Nov 3, 2015 · 25 revisions

中文數字(Chinese numerals)

Demo code

大寫中文數字

CeL.assert([ '一百兆〇八億〇八百',
	CeL.to_Chinese_numeral(100000800000800) ]);

小寫中文數字

CeL.assert([ '捌兆肆仟陸佰柒拾貳億捌仟柒佰參拾捌萬玖仟零肆拾柒',
	CeL.to_Chinese_numeral(8467287389047, true) ]);

貨幣/currency test

CeL.assert([ '新臺幣肆萬參拾伍圓參角肆分貳文參',
	CeL.to_TWD(40035.3423) ]);

相關主題