码迷,mamicode.com
首页 >  
搜索关键字:decimal    ( 1358个结果
(二分搜索 数论)(求阶乘里零个数对应的阶乘)light oj -- 1138
链接DescriptionYou task is to find minimal natural numberN, so thatN!contains exactlyQzeroes on the trail in decimal notation. As you knowN! = 1*2*...*N...
分类:其他好文   时间:2015-08-21 15:06:54    阅读次数:181
PAT 1010. Radix (25)
1010. Radix (25)Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is "yes", if 6 is a decimal n...
分类:其他好文   时间:2015-08-20 22:20:22    阅读次数:174
LightOJ 1138
Description:You task is to find minimal natural numberN, so thatN!contains exactlyQzeroes on the trail in decimal notation. As you knowN! = 1*2*...*N....
分类:其他好文   时间:2015-08-20 22:10:22    阅读次数:209
四舍六入五成双(四舍六入奇偶效验)银行家算法
规则: 四舍六入五考虑, 五后非零就进一, 五后皆零看奇偶, 五前为偶应舍去, 五前为奇要进一。 c#: Math.Round(new Decimal(1.2050),2) 1.2 Math.Round(new Decimal(1.2150),2) 1.22 Math.Round(new Decimal(1.2250),2) 1.22 ...
分类:编程语言   时间:2015-08-20 16:57:09    阅读次数:330
零基础学python-5.7 小数精度
首先我们来看一个特殊的例子 在上面的表达式当中,我们口算都可以算出来是0,为什么是那么一个接近0的数呢? 这就要从小数的精度说起。 1.小数的产生 这种小数一般是通过表达式或者引用其他模块运算后形成的,而不是变量赋值创建的 2.小数对象 我们可以使用小数对象,来控制输出的小数 3.使用decimal模块控制全局小数输出...
分类:编程语言   时间:2015-08-19 09:30:41    阅读次数:189
mysql文档摘要续3
mysql 数据类型:整数浮点类型1、bool、boolean相当于tinyint(1).其中true等同于1,false等同于0.2、tinyint(M)、smallint(M)等默认是signed有符号的,可以定义unsigned无符号。3、decimal(M,D)其中M表示总长度max 65,...
分类:数据库   时间:2015-08-18 13:54:30    阅读次数:166
hive学习笔记-表操作
Hive数据类型 基本数据类型 tinyint,smallint,int,biging,float,double,decimal,char,varchar,string,binary,boolean,timestamp,date, 引用数据类型 Array:相同数据类型组合的数组,使用array[1]访问 MAP:Key-value键值对,通过键进行访问,使用map['key']访问 ...
分类:其他好文   时间:2015-08-17 19:30:51    阅读次数:125
MySQL事务及触发器
目录(?)[+]事务提交或回滚常见的事务指令事务的特点ACID触发器创建触发器管理触发器事务create table swpu(id int primary key auto_increment,money decimal(10,2) comment '学费');insert into swpu v...
分类:数据库   时间:2015-08-17 13:55:54    阅读次数:187
在数据库中根据经纬度查找数据中所有附近的经纬度点
ALTER FUNCTION [GetDistance]( @GPSLng DECIMAL(12,6),@GPSLat DECIMAL(12,6),@Lng DECIMAL(12,6),@Lat DECIMAL(12,6))RETURNS DECIMAL(12,4)ASBEGIN DECLAR...
分类:数据库   时间:2015-08-16 21:02:33    阅读次数:386
SQL表的默认常用数据类型
分类字段类型描述整数bit0或1的整型数字int从-2^31(-2,147,483,648)到2^31-1(2,147,483,647)的整型数字smallint从-2^15(-32,768)到2^15-1(32,767)的整型数字tinyint从0到255的整型数字精确小数decimal(p...
分类:数据库   时间:2015-08-16 19:33:44    阅读次数:333
1358条   上一页 1 ... 96 97 98 99 100 ... 136 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!