1.Decimal(n,m) 十进位小数 n为最大数值位数(取值1-38),m为小数位数(取值0-n)。 decimal(3,2) -9.99 to 9.99 decimal(4,4) -.9999 to .9999 decimal(9,1) -99999999.9 to 99999999.9 2. ...
分类:
其他好文 时间:
2019-03-04 18:58:23
阅读次数:
173
server端 代码 00000000 00000000 | 49 20 4c 6f 76 65 20 59 | I Love Y00000008 00000008 | 6f 75 2c 20 4d 79 20 46 | ou, My F00000010 00000016 | 72 69 65 6e ...
分类:
其他好文 时间:
2019-02-24 18:40:55
阅读次数:
174
算法描述: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is rep ...
分类:
其他好文 时间:
2019-02-19 13:38:24
阅读次数:
125
The decimal expansion of the fraction 1/33 is 0.03, where the 03 is used to indicate that the cycle 03 repeats inde?nitely with no intervening digits. ...
分类:
其他好文 时间:
2019-02-16 09:27:03
阅读次数:
147
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 ...
分类:
其他好文 时间:
2019-02-15 19:50:49
阅读次数:
190
java中大数以及高精度常用函数 使用java大数类解决问题时我们需要注意两个方面:1、不能有包名,也就是说我们要把主类放到默认的包里,如果你的代码里出现形如package cn.gov.test;这样的代码你很有可能会收获到RE 2、提交的类的类名必须为Main,如果是其他的名字你有可能收获到CE ...
分类:
编程语言 时间:
2019-01-27 16:38:17
阅读次数:
203
一、表结构优化 1、数字类型:存储空间浪费,空间大小不一样,搜索速度也不一样 (1).tinyint 8位 -128~127 unsigned tinyint(0~255) int,bigint,能确定不会使用负数的字段,建议添加unsigned定义 (2).固定精度的小数,不建议使用decimal... ...
分类:
数据库 时间:
2019-01-26 22:04:20
阅读次数:
237
Console.WriteLine(string.Format("{0:####}", 594884.539)); Console.WriteLine(string.Format("{0:N0}", 594884.539)); ...
MySql支持多种数据类型,主要有数值类型、日期/时间类型和字符串类型。 数值数据类型:包括整数类型TINYINT、SMALLINT、MEDIUMINT、INT、BIGINT、浮点小数数据类型FLOAT和DOUBLE,定点小数类型DECIMAL。 日期/时间类型:包括YEAR、TIME、DATE、D ...
分类:
数据库 时间:
2019-01-24 21:53:08
阅读次数:
174
//计算比率 decimal A =(decimal) 200.20; decimal B = (decimal)1000.20; decimal t = decimal.Parse((A/B).ToString("0.000")) ; //保留3位小数 // ... ...