Menu

Tiny Framework / Blog: Recent posts

Tiny开源了~~

Tiny不是从现在开始,已经做了近两年的时间,在SOA架构体系及应用开发方面做了大量的工作,同时也为开发、发布、维护等各个阶段的开发与打包做了深入的思考,同时也提供了资产复用方面的支持。

Posted by spzebra 2013-06-20

货币转换为中文大写的算法

见到过许多把数字货币转换为中文大写的算法,包括许多搜索引擎中提供的或大的网站提供的,都未必漂亮或完全正确,因此,写一个数字货币转中文大写的算法。
直接上代码
public class ConvertV1 {
private static char[] CN_NUMBER = { '零', '壹', '贰', '叁', '肆', '伍', '陆', '柒','捌', '玖' };
private static char[] CN_DECIMAL = { '十', '百', '千' };
private static char[] TEN_THOUSAND_UNIT = { '元', '万', '亿', '兆', '京', '垓','秭', '穰', '沟', '涧', '正', '载' };
private static char[] RMB_SMALL_UNIT = { '角', '分' };... read more

Posted by spzebra 2013-06-20
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.