码迷,mamicode.com
首页 >  
搜索关键字:decimal    ( 1358个结果
sql的数据类型
SQLServer 提供了 25 种数据类型: ·Binary [(n)] ·Varbinary [(n)] ·Char [(n)] ·Varchar[(n)] ·Nchar[(n)] ·Nvarchar[(n)] ·Datetime ·Smalldatetime ·Decimal[(p[,s])] ...
分类:数据库   时间:2018-08-13 19:42:59    阅读次数:176
Light oj 1140 How Many Zeroes?
Jimmy writes down the decimal representations of all natural numbers between and including m and n, (m ≤ n). How many zeroes will he write down? Input ...
分类:其他好文   时间:2018-08-10 11:01:02    阅读次数:187
计算两个经纬度之间的距离
//计算两个经纬度之间的距离function getDistance($longitude1, $latitude1, $longitude2, $latitude2, $unit=2, $decimal=2){ $EARTH_RADIUS = 6370.996; // 地球半径系数 $PI = 3 ...
分类:其他好文   时间:2018-08-08 15:01:38    阅读次数:132
sql 保留2位小数
2.176544保留两位小数 1.select Convert(decimal(18,2),2.176544) 结果:2.18 2.select Round(2.176544,2) 结果:2.180000 2.176544保留两位小数 1.select Convert(decimal(18,2),2 ...
分类:数据库   时间:2018-08-06 18:30:05    阅读次数:192
Small Multiple
题目描述 Find the smallest possible sum of the digits in the decimal notation of a positive multiple of K.Constraints2≤K≤105K is an integer. 输入 Input is g ...
分类:其他好文   时间:2018-08-04 20:38:42    阅读次数:184
HDU 2106 decimal system
http://acm.hdu.edu.cn/showproblem.php?pid=2106 Problem Description As we know , we always use the decimal system in our common life, even using the co ...
分类:其他好文   时间:2018-08-03 01:05:38    阅读次数:173
MYSQL中,CAST函数的使用规则
CAST函数语法规则是:Cast(字段名 as 转换的类型 ),其中类型可以为: CHAR[(N)] 字符型 DATE 日期型DATETIME 日期和时间型DECIMAL float型SIGNED intTIME 时间型 实例1: 这里date对应日期,time对应时间 ...
分类:数据库   时间:2018-07-30 20:24:41    阅读次数:516
MySQL基础
数据完整性 字段类型 数字:int,decimal 字符串:char,varchar,text 日期:datetime 布尔: bit 约束(物理上存储数据按照主键,不是按照唯一) 主键:primary key 非空:not null 唯一:unique 默认:default 外键:foreign ...
分类:数据库   时间:2018-07-28 20:33:38    阅读次数:147
PAT 1015 Reversible Primes[求d进制下的逆][简单]
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re ...
分类:其他好文   时间:2018-07-28 12:07:02    阅读次数:126
python 数字的四舍五入的问题
由于 python3 包括python2.7 以后的round策略使用的是decimal.ROUND_HALF_EVEN 即Round to nearest with ties going to nearest even integer. 也就是只有在整数部分是奇数的时候, 小数部分才逢5进1; 偶 ...
分类:编程语言   时间:2018-07-25 23:58:30    阅读次数:400
1358条   上一页 1 ... 34 35 36 37 38 ... 136 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!