摘要:
代码是Java转过来的,变量名都没有改……有空再整理一下好了。publiclongtoDecimal(stringinput,longbs){try{longBigtemp=0,temp=1;intlen=input.Length;for(inti=len-1;i>=0;i--){if(i!=len-1)temp*=bs;longnum=changeDec(input[i]);Bigtemp+=temp*num;}returnBigtemp;}catch{return0;}}//十进制转换中把字符转换为数staticintchangeDec(charch){intnum=0;if(ch& 阅读全文
posted @ 2013-04-19 16:02
ゞ追忆o0ゞ
阅读(3099)
评论(5)
推荐(0)

浙公网安备 33010602011771号