js数字大写转换器代码,js大写转换成小写的函数教程如下:
输入小写数字
转换出大写文字
js实现代码:
function convertCurrency(currencyDigits) {
// Constants:
var MAXIMUM_NUMBER = 99999999999.99;
// Predefine the radix characters and currency symbols for output:
var CN_ZERO = "闆�";
var CN_ONE = "澹�";
var CN_TWO = "璐�";
var CN_THREE = "鍙�";
var CN_FOUR = "鑲�";
var CN_FIVE = "浼�";
var CN_SIX = "闄�";
var CN_SEVEN = "鏌�";
var CN_EIGHT = "鎹�";
var CN_NINE = "鐜�";
var CN_TEN = "鎷�";
var CN_HUNDRED = "浣�";
var CN_THOUSAND = "浠�";
var CN_TEN_THOUSAND = "涓�";
var CN_HUNDRED_MILLION = "浜�";
var CN_DOLLAR = "";
var CN_TEN_CENT = "";
var CN_CENT = "";
var CN_INTEGER = ""
// Variables:
var integral; // Represent integral part of digit number.
var dec