码迷,mamicode.com
首页 >  
搜索关键字:decimal    ( 1358个结果
iOS内置音频
Predefined soundsThere are some predefined system sounds, for the system sound ID in the range 1000 to 2000 (decimal), as shown below (from 2.0 to 5.0...
分类:移动开发   时间:2015-08-14 11:10:01    阅读次数:169
MySQL视图
create table teacher( id int primary key auto_increment, name varchar(10), salary decimal(10,2) ); insert into teacher values(null,'李国冬',100.11); insert into teacher values(null,'周杰伦',132.41); insert i...
分类:数据库   时间:2015-08-13 18:14:33    阅读次数:153
js 将数值显示为金额
项目中常遇到要将数值显示为金额。例如:3000 => $3,000.00function formateMoney(number, places, symbol, thousand, decimal) { number = number || 0; places = !isNaN(pla...
分类:Web程序   时间:2015-08-11 20:59:33    阅读次数:223
0505.Net基础班第六天(复杂数据类型)
1、变量类型 int double string char bool decimal 变量的使用规则:先声明再赋值最后使用 int number; number=10; number=20; Console.WriteLine(number);2、Camel Pascal3、运算符 赋值运算符:= ...
分类:Web程序   时间:2015-08-08 18:03:06    阅读次数:139
【VBA研究】VBA数据类型定义和管控
作者:iamlaosong 数据类型是对同一类数据的统称,如文本、日期、数值等。VBA里的数据类型有:字节型(Byte),整数型(Integer),长整数型(Long),单精度浮点型(Single),双精度浮点型(Double),货币型(Currency),小数型(Decimal),字符串型(文本型)(String),日期型(Date),布尔型(Boolean)。 VBA对数据类型定义的管控并不强,比如定义成整数型的变量同样可以赋值字符串,但是如果不注意,就会导致逻辑错误。...
分类:编程语言   时间:2015-08-07 13:23:32    阅读次数:529
将decimal类型的数据转成2.12这样价钱的显示方式
UnitPrice = string.Format("{0:.00}", m.UnitPrice),
分类:其他好文   时间:2015-08-06 14:58:09    阅读次数:86
EF中使用NextVal(oracle)
编写扩展方法public static decimal GetNextVal(this System.Data.Entity.DbContext ctx, string seqName) { return ctx.Database.SqlQuery(string.Format("SELECT {0}...
分类:数据库   时间:2015-08-06 09:22:27    阅读次数:239
低三位的数是8的倍数就可以被8整除
DescriptionYou are given a non-negative integern, its decimal representation consists of at most100digits and doesn't contain leading zeroes.Your task...
分类:其他好文   时间:2015-08-05 06:31:09    阅读次数:133
数据结构基础 算法复杂度分析(二) 典例篇
示例代码(1) decimal Factorial(int n) { if (n == 0) return 1; else return n * Factorial(n - 1); } 【分析】 阶乘(factorial),给定规模 n,算法基本步骤执行的数量为 n,所以算法复杂度为 O(n)。 示例代码(2) int FindMaxElement(int[] array) { int max = array[0]...
分类:编程语言   时间:2015-08-02 21:43:05    阅读次数:174
计算指数函数的算法
引言 我在上一篇随笔中介绍了计算自然对数的快速算法。现在我们来看看计算指数函数的算法。我们知道,指数函数 ex 可以展开为泰勒级数: 这个级数对全体实数 x 都收敛,并且在 x 接近零时收敛得比较快。 实现该算法的 C# 程序 根据前面所述的 ex 的泰勒级数展开式,可以写出以下 C# 程序来为 decimal 数据类型添加一个 Exp 扩展方法: 1 ...
分类:编程语言   时间:2015-08-01 14:22:15    阅读次数:220
1358条   上一页 1 ... 97 98 99 100 101 ... 136 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!