码迷,mamicode.com
首页 >  
搜索关键字:decimal    ( 1358个结果
寒假集训.Skew Binary
Skew Binary Time Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %llu Submit Status Practice UVA 575 Description When a number is expressed in decimal, the k-th digit ...
分类:其他好文   时间:2015-02-09 23:10:07    阅读次数:222
float double decimal 类型
float:浮点型,含字节数为4,32bit,数值范围为-3.4E38~3.4E38(7个有效位)double:双精度实型,含字节数为8,64bit数值范围-1.7E308~1.7E308(15个有效位)decimal:数字型,128bit,不存在精度损失,常用于银行帐目计算。(28个有效位)flo...
分类:其他好文   时间:2015-02-09 12:25:58    阅读次数:108
H2Database数据类型
数据类型整数(INT) 布尔型(BOOLEAN) 微整数(TINYINT) 小整数(SMALLINT) 大整数(BIGINT) 标识符(IDENTITY) 货币数(DECIMAL) 双精度实数(DOUBLE) 实数(REAL) 时间(TIME) 日期(DATE) 时间戳...
分类:数据库   时间:2015-02-06 09:26:40    阅读次数:242
Lintcode: Binary Representation
Given a (decimal - e g 3.72) number that is passed in as a string,return the binary representation that is passed in as a string.If the number can no....
分类:其他好文   时间:2015-02-05 07:03:58    阅读次数:147
Leetcode: Fraction to Recurring Decimal
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in parentheses....
分类:其他好文   时间:2015-02-05 00:50:42    阅读次数:174
数据库 数据类型
一、数据类型:整数:int,bigint,smallint小数:float,real,decimal(长度,精度),numeric(长度,精度)字符:char(n),varchar(n) 8000英文字符,4000汉字 text——大文本。逻辑:bit 0,1/true/false二进制类型:bin...
分类:数据库   时间:2015-02-04 14:16:30    阅读次数:208
Variables and Arithmetic Expression
Notes from The C Programming LanguageA decimal point in a constant indicates that it is floating point, however, so $5.0/9.0$ i not truncated because ...
分类:其他好文   时间:2015-02-02 21:26:20    阅读次数:156
Javascript之sprintf
/** * * Javascript sprintf * http://www.webtoolkit.info/ * * %% – Returns a percent sign * %b – Binary number * %c – The character according to the ASCII value * %d – Signed decimal number * %f...
分类:编程语言   时间:2015-02-01 16:11:24    阅读次数:178
Leetcode#166 Fraction to Recurring Decimal
原题地址计算循环小数先把负数转化成正数,然后计算,最后添加符号当被除数重复出现的时候,说明开始循环了,所以用一个map保存所有遇到的被除数需要考虑溢出问题,这也是本题最恶心的地方,看看通过率吧,比Hard难度的题还低。最残暴的做法是直接转成64位长整型,比如下面的代码。好处是代码简洁了许多,不过这是...
分类:其他好文   时间:2015-01-30 15:27:28    阅读次数:153
Velocity常用方法
1.字符串替换 replace#if($!{name} != '')#set($tempName = $!{name})#set($tempName = $tempName.Replace('abc','def'))$tempName#end2.decimal数据类型转换成一定的字符串格式 tost...
分类:其他好文   时间:2015-01-30 14:59:08    阅读次数:478
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!