摘要: XHTML 1.0简明手册(转)过渡型XHTML文档头与文档结构<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xh... 阅读全文
posted @ 2009-06-25 09:24 翩翩起舞的猪 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 方法1: int n=3;//例如取小数位3位 double a=1.1234567; int index = a.ToString().IndexOf(".");//取小数点所在位置索引 if (index + 1 + n > a.ToString().Length|| a.ToString().IndexOf(".")==-1)//索引大于长度或a为整数 string a3 = a.To... 阅读全文
posted @ 2009-06-24 10:14 翩翩起舞的猪 阅读(7781) 评论(0) 推荐(0) 编辑