8.EditText的属性很多
这里介绍几个:
android:hint="请输入数字!"//设置显示在空间上的提示信息
android:numeric="integer"//设置只能输入整数,如果是小数则是:decimal
android:singleLine="true"//设置单行输入,一旦设置为true,则文字不会自动换行。
android:password="true"//设置只能输入密...
分类:
移动开发 时间:
2014-11-25 14:36:45
阅读次数:
206
创建一个空白窗体,复制以下代码即可 public partial class Form1 : Form { int width, height; decimal percent = 0m; string path = "C:\\Users\\Pu...
最近做一个报表,有个字段保存money,涉及到小数,没有多想就将数据库字段设置成了float,等查询出来,真正的值后面加了一坨随机数字,太呕吐了,查了点资料,将该字段格式改成了decimal(10,1),就ok了。例如,语句FLOAT (5,2)规定显示的值不会超过5位数字,小数点后面带有2位数字。...
分类:
数据库 时间:
2014-11-24 15:05:16
阅读次数:
204
float版:public static void getSmallFramPoint() { string framString ="Row,"+"Colum,"+ "framX," + "framY\r\n"; float i = 15f; float j =70f ; float ...
分类:
其他好文 时间:
2014-11-23 00:36:01
阅读次数:
309
Problem Description
A wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string "13" and can be divided by 13. For example, 130 and 2613 are wqb-numbe...
分类:
其他好文 时间:
2014-11-22 21:36:21
阅读次数:
212
Problem Description
For a decimal number x with n digits (AnAn-1An-2 ... A2A1), we define its weight as F(x) = An * 2n-1 + An-1 * 2n-2 + ... + A2 * 2 + A1 *
1. Now you are given two numbers A and...
分类:
其他好文 时间:
2014-11-22 16:04:48
阅读次数:
188
/// /// 找零钱,返回人民币总张数 /// class MoneyNums { /// /// 定义人民币类别值 /// private decimal[] RMB = { 100...
分类:
其他好文 时间:
2014-11-21 12:11:14
阅读次数:
121
int 整数 bigint 大整数 bit 字节(电脑存储大小,点是1V一字节,一个字节代表8V。 ) char 字符 date 日期 datatime 日期+时间 decimal(18,0) 小数(小数点后18位,可以修改) image 图像money 钱类型 bigint 长整型 binary(...
分类:
其他好文 时间:
2014-11-19 17:51:44
阅读次数:
153
第一次进行WPF开发。。。 class Number { private string str_buffer = null; private decimal dec_buffer = 0m; public void plus() { dec_buffer = Convert.ToDecimal(st...
分类:
其他好文 时间:
2014-11-14 21:04:26
阅读次数:
206
1 /// 2 /// 金额小写变大写 3 /// 4 /// 5 /// 6 public static string gMoney(decimal smallnum) ...
分类:
其他好文 时间:
2014-11-14 17:34:24
阅读次数:
195