码迷,mamicode.com
首页 >  
搜索关键字:decimal    ( 1358个结果
LeetCode (29) 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.For...
分类:其他好文   时间:2015-05-07 14:32:56    阅读次数:152
浅谈MySQL数据类型
MySQL数据类型MySQL中定义数据字段的类型对你数据库的优化是非常重要的。MySQL支持多种类型,大致可以分为三类:数值、日期/时间和字符串(字符)类型。一、数值类型MySQL支持所有标准SQL数值数据类型。这些类型包括严格数值数据类型(INTEGER、SMALLINT、DECIMAL和NUME...
分类:数据库   时间:2015-05-07 12:00:43    阅读次数:151
Razor练习2
Razor的数据类型有string,int,float,decimal,bool等。另外需要对数据类型的转换,通常的方法有如下:ToString(): 转换数据类型为字符串(string)。此与C#语法相同。IsBool()和AsBool() 是把字符串转换为布尔值(Boolean)。IsFloat...
分类:其他好文   时间:2015-05-06 16:49:14    阅读次数:108
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-05-06 13:26:33    阅读次数:113
解决使用DbContext保存Decimal数据时总是保留小数位2位问题
通过System.Data.Entity.DbContext保留Decimal类型数据时,默认只保留小数位2位。要解决该问题,可以通过在OnModelCreating事件中添加相应代码即可,具体参考如下代码中将shop.Longitude设置为小数位20位: public class UserDbContext : System.Data.Entity.DbContext { publi...
分类:数据库   时间:2015-05-06 13:20:40    阅读次数:130
MySql和SQL Server数据类型 对比
My Sql 数据类型SQL Server 数据类型 Yes/Nobit Smallint(字节型)tinyintInteger(长整型)int Real(单精度浮点型) real Float(双精度浮点型)floatCurrencymoneysmallmoney Decimal/numericde...
分类:数据库   时间:2015-05-05 12:03:22    阅读次数:135
poj1426 Find The Multiple
Description Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater tha...
分类:其他好文   时间:2015-05-04 15:38:30    阅读次数:105
Codeforces Round #300 - Quasi Binary(贪心)
Quasi Binary Time Limit:2000MS     Memory Limit:262144KB     64bit IO Format:%I64d & %I64u Submit Status Description A number is called quasibinary if its decimal representation contai...
分类:其他好文   时间:2015-05-01 17:27:06    阅读次数:136
SQL Server 数据库知识要点,自己整理
数据库主要知识点: primary key 主键 references 外键 distinct 去重 identity 自增长 check 约束 fenshu decimal(18,2) check(fenshu>=0 and fenshu<=100)--输入分数的范围在0到100之间 uni...
分类:数据库   时间:2015-04-30 13:59:45    阅读次数:150
c#的数据类型、运算符
数据类型:整型:int short long byte小数:double float decimal布尔:bool字符:char定义变量:数据类型 变量名 [= 值];变量名的命名规则:1.组成的字符:字母,数字,下划线,@,汉字2.首字符:只能用字母,汉字,下划线,@3.不能与关键词重:常量:co...
分类:Windows程序   时间:2015-04-29 21:11:39    阅读次数:173
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!