码迷,mamicode.com
首页 >  
搜索关键字:decimal    ( 1358个结果
回溯-POJ2676-Sudoku
Description Sudoku is a very simple task. A square table with 9 rows and 9 columns is divided to 9 smaller squares 3x3 as shown on the Figure. In some of the cells are written decimal digits from 1...
分类:其他好文   时间:2015-04-23 13:17:16    阅读次数:144
C#科学计数法转化为正常数值
1.字符串值中包含E等科学计数法,比如12E-2,需要进行转化为普通数值0.12, 2.转化函数如下:  private Decimal ChangeDataToD(string strData)         {             Decimal dData = 0.0M;             if (strData.Contains("E"))             ...
分类:Windows程序   时间:2015-04-22 18:14:05    阅读次数:249
Smallest Difference
Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5364 Accepted: 1456 Description Given a number of distinct decimal digits, you can form one integer by choosing a non-...
分类:其他好文   时间:2015-04-22 15:16:23    阅读次数:143
SQL SERVER PIVOT 行转列、列传行
在数据库操作中,有些时候我们遇到需要实现“行转列”的需求,例如一下的表为某店铺的一周收入情况表: WEEK_INCOME(WEEK VARCHAR(10),INCOME DECIMAL) 我们先插入一些模拟数据: INSERT INTO WEEK_INCOME SELECT '星期一',1000 U...
分类:数据库   时间:2015-04-22 11:19:57    阅读次数:229
TSQL - Decimal, Numeric, Float & Real
在SQL Server中数值类型有多种不同的分法,其中一种就是:精确类型和近似类型。其中近似类型其实只有两种数据类型:Float和Real。在我们的数据库设计中如果设计到需要存储非整形数值的时候,很多时候我们都会疑惑到底需要用下面数据类型的哪个:FloatRealDecimalNumeric说开来其...
分类:数据库   时间:2015-04-21 19:57:30    阅读次数:172
TCPL知识点总结(四)(完)
1 static类型的内部变量是一种只能在某个特定函数中使用但一直占据存储空间的变量。 2 在不进行显式初始化的情况下,外部变量和静态变量都将被初始化为0,面自动变量和寄 存器变量的初值则没有定义(即初值为无用的信息)。 3 打印出数字 #include /* printd: print n in decimal */ void printd(int n) {...
分类:其他好文   时间:2015-04-21 13:07:16    阅读次数:132
BCD码
BCD码(Binary-Coded Decimal?)亦称二进码十进数或二-十进制代码。用4位二进制数来表示1位十进制数中的0~9这10个数码。是一种二进制的数字编码形式,用二进制编码的十进制代码。BCD码这种编码形式利用了四个位元来储存一个十进制的数码,使二进制和十进制之间的转换得以快捷的进行。这...
分类:其他好文   时间:2015-04-21 09:26:33    阅读次数:137
数据库子函数等
create table yyy(code int ,name varchar(50),sex varchar(50),age int,hight decimal(18,1),weight decimal(18,1),idno bigint,address varchar(50))insert in...
分类:数据库   时间:2015-04-21 00:10:50    阅读次数:224
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 repeati...
分类:其他好文   时间:2015-04-20 10:51:37    阅读次数:117
标签使用
1、标签校验validator="decimal(16,2,+)"validator="text(0,10)"validator="digit(0,10000000)"validator="date(yyyy-mm-dd)"validator="date(yyyy-mm-dd)" style="te...
分类:其他好文   时间:2015-04-18 15:57:22    阅读次数:1106
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!