码迷,mamicode.com
首页 >  
搜索关键字:radix    ( 316个结果
异常处理
1.抛出异常:throw 异常对象;下面的代码是一个进制转换代码,可以转换为2进制和8进制,如果输入其他参数,则抛出异常。 1 public static String transform(int value,int radix){ 2 if(value <0 ) 3 ...
分类:其他好文   时间:2015-03-06 23:32:49    阅读次数:151
java中string和int互相转化
1 怎样将字串 String 转换成整数 int?A. 有两个方法:1). int i = Integer.parseInt([String]); 或i = Integer.parseInt([String],[int radix]);2). int i = Integer.valueOf(my_s...
分类:编程语言   时间:2015-02-21 11:56:56    阅读次数:253
javascript小数求整
Math.ceil(arg) 返回一个比参数arg大的整数Math.floor(arg) 返回一个比参数arg小的整数Math.round(arg) 返回一个参数arg四舍五入的后的整数parseInt(arg[,radix]) 返回一个往0方向靠近的整数,但是这个函数多了一个可以根据进制来转换数字...
分类:编程语言   时间:2015-02-15 18:07:28    阅读次数:184
JavaScript parseInt() toString()函数
原文:JavaScript parseInt() toString()函数 parseInt(string, radix) string:必需。要被解析的字符串 radix:可选。表示要解析的数字的基数。该值介于 2 ~ 36 之间。 如果省略该参数或其值为 0,则数字将以 10 为基础来解析。如果...
分类:编程语言   时间:2015-02-10 16:41:28    阅读次数:181
JavaScript parseInt() 函数
原文:JavaScript parseInt() 函数 parseInt(string, radix) string:必需。要被解析的字符串 radix:可选。表示要解析的数字的基数。该值介于 2 ~ 36 之间。 如果省略该参数或其值为 0,则数字将以 10 为基础来解析。如果它以 “0x” 或 ...
分类:编程语言   时间:2015-02-10 13:08:18    阅读次数:155
JavaScript parseInt() toString()函数
parseInt(string, radix)string:必需。要被解析的字符串radix:可选。表示要解析的数字的基数。该值介于 2 ~ 36 之间。如果省略该参数或其值为 0,则数字将以 10 为基础来解析。如果它以 “0x” 或 “0X” 开头,将以 16 为基数。如果该参数小于 2 或者....
分类:编程语言   时间:2015-02-10 12:57:44    阅读次数:100
YT14-HDU-求1/n的第m位数
Problem Description Now give you two integers n m, you just tell me the m-th number after radix point in 1/n,for example n=4,the first numble after point is 2,the second is 5,and all 0 followed Inpu...
分类:其他好文   时间:2015-02-10 00:43:33    阅读次数:174
链表应用:基数排序
在基数排序( radix sort)中,把数按照某种基数分解为数字,然后对数字进行排序。例3-1 假定对范围在 0 ~ 9 9 9之间的 1 0个整数进行排序。如果使用 r a n g e = 1 0 0 0来调用 B i n S o r t,那么箱子的初始化将需要 1 0 0 0个执行步,节点分配...
分类:编程语言   时间:2015-02-05 18:10:13    阅读次数:229
jquery parseInt()的问题
对于parseInt("01")到parseInt("07");都能得到正确的结果,但如果是parseInt("08") 或parseInt("09")则返回0; 首先看parseInt语法:parseInt(string, radix); 其中string为要转换的字符串,radix为二进制,.....
分类:Web程序   时间:2015-02-05 17:50:07    阅读次数:181
Radix Sort
1. When we are sorting the numbers we will first find the number of digits in the biggest number.2. If there are N digits in the biggest number then w...
分类:其他好文   时间:2015-02-03 06:56:27    阅读次数:116
316条   上一页 1 ... 25 26 27 28 29 ... 32 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!