/// /// 转换为字符串,去掉末尾0 /// /// 被转换的对象 /// 去掉末尾0的decimal public static string RemoveLastZero(this decimal ta...
分类:
其他好文 时间:
2016-01-05 12:26:55
阅读次数:
135
创建Modelpublic class Order { public int id { get; set; } public DateTime Time { get; set; } public decimal Price { get; set; } ...
分类:
其他好文 时间:
2016-01-04 22:25:12
阅读次数:
193
JDBC TypeJava TypeCHAR String VARCHAR String LONGVARCHAR String NUMERIC java.math.BigDecimal DECIMAL java.math.BigDecimal BIT boolean BOOLEAN boolea.....
分类:
数据库 时间:
2016-01-04 11:43:42
阅读次数:
228
因为涉及到角、分我们往往使用decimal(18, 2) 或者float 存储 钱。但是查询出来后很难处理,, 当存20元的时候查出来是20.00 ,但我们只想显示20却又不能转int, 因为我们可能会存20.1元。所以用int 或者 long 存储金额,单位为”分“ ,页面单位为”元“ 保存时 ....
分类:
数据库 时间:
2015-12-30 17:06:55
阅读次数:
214
基本类型中数值类型有 int, float, Decimal, Fraction其中int 和 float 是比较常见的类型, 而Decimal 和 Fraction 不是那么常见, 所以暂时学习int 和 float.Division (/) always returns a floatTo do...
分类:
其他好文 时间:
2015-12-29 21:08:38
阅读次数:
226
创建数据库:root用户,create database 数据库名;删除数据库:mysqladmin -u root -p drop 数据库名;选择数据库use 数据库名;数值类型MySQL支持所有标准SQL数值数据类型。这些类型包括严格数值数据类型(INTEGER、SMALLINT、DECIMAL...
分类:
数据库 时间:
2015-12-21 10:25:46
阅读次数:
165
表结构:CREATETABLE`p_account_log`(`log_id`mediumint(8)unsignedNOTNULLAUTO_INCREMENT,`uid`mediumint(8)unsignedNOTNULLCOMMENT'会员编号',`use_money`decimal(10,2...
分类:
数据库 时间:
2015-12-20 13:03:40
阅读次数:
254
/// /// 计算 /// /// /// public static decimal GoLevenshtein(string str1, string str2) { var l...
bitOperation please enter the DECIMAL 其中myRound1()和myRoundbit()方法有问题 -原博客地址 :发表于2015 年 3 月 26 日由Gabriel
分类:
其他好文 时间:
2015-12-17 22:16:20
阅读次数:
166
decimal 可以用在指定几个位数比如 123.456, decimal(3,3), 用这类型计算比较准确.默认情况下,将数字转换为较低精度和小数位数的decimal或numeric值时,SQL Server 会进行舍入declare @number decimal(38,2) = 123.456...
分类:
数据库 时间:
2015-12-17 18:56:45
阅读次数:
165