//---------- --- ----------------------------------
//1000 番目のポイントを削除します。
//------------------------------------------ ------ --
function RemoveComma(number) {
var num =number.replace(new RegExp(",","g"),"");
if(/^ [- ]?[0 -9] (.[0-9] )?$/.test(num)) {
数値を返す;
} else {
数値を返す; 🎜>}
//-------------------------------------- ------
//1000 分の 1 を加算します。
//------------------------------------------
function addKannma(number) {
var num =number.replace(new RegExp(",","g"),"");
// 正符号と負符号処理
var symble = "";
if(/^([- ]).*$/.test(num)) {
symble = num.replace(/^([- ]). *$ /,"$1");
num = num.replace(/^([- ])(.*)$/,"$2");
}
if(/ ^[ 0-9] (.[0-9] )?$/.test(num)) {
var num = num.replace(new RegExp("^[0] ","g")," ") ;
if(/^./.test(num)) {
num = "0" num;
}
var 10進数 = num.replace(/^[0 -9 ] (.[0-9] )?$/,"$1");
var integer= num.replace(/^([0-9] )(.[0-9] )?$/ ," $1");
var re=/(d )(d{3})/
while(re.test(integer)){
integer =integer.replace (re ,"$1,$2")
}
戻り値 整数;
} else {
戻り値;
}
}