注意:
编码的基础知识:
1.位 bit
最小的单元
字节 byte
机器语言的单位
换算
1byte=8bits
1kb=1024byte 1MB=1024KB 1GB=1024MB
2.进制
二进制 binary |
八进制
octal |
十进制 decimal |十六进制hex
3.字符:是各种文字和符号的总称,包括...
分类:
其他好文 时间:
2016-04-19 19:55:38
阅读次数:
1187
开始之前需要注意一点是:精度值为数字的总位数,如:1.23, 精度值为3; 0.123,精度值也为3 1、更改默认精度值后,直接进行计算即可保留对应范围值 2、小数保留位数问题 3、取整问题 需要记住几个参数: ROUND_CEILING 总是趋向无穷大向上取整 ROUND_DOWN 总是趋向0取整 ...
分类:
其他好文 时间:
2016-04-18 18:53:44
阅读次数:
164
对比一下,首先是用 mysql 的存储过程弄的: 复制代码代码如下: mysql>delimiter $ mysql>SET AUTOCOMMIT = 0$$ mysql> create procedure test() begin declare i decimal (10) default 0 ...
分类:
数据库 时间:
2016-04-18 13:31:48
阅读次数:
192
参考:http://database.51cto.com/art/201005/201651.htm http://www.lai18.com/content/1693593.html 直接上例子,以下是对字段cost除以1000,保留两位小数的处理 cast()函数是一个转换函数,参数是一个表达式 ...
分类:
数据库 时间:
2016-04-15 19:50:33
阅读次数:
206
F(x) Time Limit:500MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u F(x) Description For a decimal number x with n digits (A nA n-1A n-2 ... A 2A ...
分类:
其他好文 时间:
2016-04-13 23:36:23
阅读次数:
478
CREATE proc [dbo].[Sys_Rebate_Equity] AS declare @fMemberID varchar(50)--用户ID declare @Rebate decimal(18,2)--总股权数 BEGIN begin try Begin Transaction -- ...
分类:
数据库 时间:
2016-04-13 12:50:01
阅读次数:
185
MYSQL数据库名称是否区别大小写,取决于文件系统,windows不区分,linux区分。mysql数据库类型整数类型:TINYINTSMALLINTMEDIUMINTINTBIGINT字节数:12348修饰符UNSIGNED(无符号)NOTNULL(不为空)浮点数类型:单精度(FLOAT)双精度(double)字节数:48定点数类型:DECIMAL(M,D..
分类:
数据库 时间:
2016-04-12 07:45:34
阅读次数:
276
Given any integer 0 ≤ n ≤ 10000 not divisibleby 2 or 5, some multiple of n is a number whichin decimal notation is a sequence of 1’s. Howmany digits a ...
分类:
其他好文 时间:
2016-04-11 13:56:35
阅读次数:
87
package com.tv.ui.metro.utils;import java.math.BigInteger;/** * Created by Administrator on 16-4-9. */public class NumberConverter { public static Lon ...
分类:
编程语言 时间:
2016-04-09 10:35:15
阅读次数:
166
复习已学知识 1.变量类型int double string char bool decimal变量使用规则:先声明再赋值最后使用int number;number=10; //int number=10; 可以写成一句。Console.WriteLine(number); 2.Camel 首字母小 ...
分类:
其他好文 时间:
2016-04-08 21:39:59
阅读次数:
182