码迷,mamicode.com
首页 >  
搜索关键字:recurring decimal    ( 1394个结果
浮点数比较
参照MSDN定义: /*?Compile?options?needed:?none.?Value?of?c?is?printed?with?a?decimal point?precision?of?10?and?6?(printf?rounded?value?by?default)?to show?the?difference */...
分类:其他好文   时间:2014-08-22 16:32:59    阅读次数:255
newtonsoft.json 序列化,反序列化
public class Book { public string BookID { get; set; } public DateTime PublishDate { get; set; } public decimal Price { ...
分类:Web程序   时间:2014-08-21 09:38:14    阅读次数:265
UVA - 11038 How Many O's? (计数)
Description Problem E: How many 0's? A Benedict monk No. 16 writes down the decimal representations of all natural numbers between and including m and n, m ≤ n. How many 0's will he write down? ...
分类:其他好文   时间:2014-08-20 19:42:02    阅读次数:224
Project Euler 26 计算小数位循环的位数
A unit fraction contains 1 in the numerator. The decimal representation of the unit fractions with denominators 2 to 10 are given: 1/2 =  0.5 1/3 =  0.(3) 1/4 =  0.25 1/5...
分类:其他好文   时间:2014-08-20 16:25:32    阅读次数:157
使用嵌入式关系型SQLite数据库存储数据
在Android平台上,集成了一个嵌入式关系型数据库—SQLite,SQLite3支持 NULL、INTEGER、REAL(浮点数字)、TEXT(字符串文本)和BLOB(二进制对象)数据类型,虽然它支持的类型只有五种,但实际上sqlite3也接受varchar(n)、char(n)、decimal(...
分类:数据库   时间:2014-08-20 14:02:22    阅读次数:409
Cracking the Coding Interview 5.2
Given a(decimal -e.g. 3.72)number that is passed in as a string, print the binary representation. If the number can not be represented accurately in b...
分类:其他好文   时间:2014-08-19 22:04:15    阅读次数:233
分享 SqlServer中常用且实用的几个数值处理自定义函数
--数字处理的几个常用自定义Sql函数--小数开头没有0和末尾多余0处理CREATE function [dbo].[FormatFloat](@dec decimal(18,10)) returns varchar(30) as begin declare @inValue varchar(30)...
分类:数据库   时间:2014-08-16 12:28:10    阅读次数:242
分数转化为小数
很水,但是需要练速度反映。。。15分钟全部写对!!!!!!!!!!!!  #include #include #include using namespace std; class Decimal { public: int integer; bool recycle; vector decimal; }; void toDecimal(int dividend, ...
分类:其他好文   时间:2014-08-13 22:28:47    阅读次数:277
string转换为decimal
public decimal Change_StrToDecimal(string str) { str = str.Trim(); decimal value; str = Server.HtmlDecode(str); if (s...
分类:其他好文   时间:2014-08-13 17:42:16    阅读次数:115
人民币大小写金额
public string CmycurD(decimal num) { string str1 = "零壹贰叁肆伍陆柒捌玖"; //0-9所对应的汉字 string str2 = "万仟佰拾亿仟佰拾万仟佰拾元角分"; //数字位所对应的汉字 ...
分类:其他好文   时间:2014-08-13 17:33:26    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!