Anton has a positive integer nn, however, it quite looks like a mess, so he wants to make it beautiful after kk swaps of digits. Let the decimal repre ...
分类:
其他好文 时间:
2020-01-29 12:32:38
阅读次数:
60
"题目" 题意:给出一个分数的分子和分母,给出这个分数的小数形式的字符串模式。循环的部分用( 括上。 题解:模拟除法,判断循环体。 ...
分类:
其他好文 时间:
2020-01-27 15:50:43
阅读次数:
70
1 数据库设计 1.1 表关系梳理 仔细思考业务关系,得到如下表关系图 1.2 用户表结构 1.3 分类表结构 id=0为根节点,分类其实是树状结构 1.4 商品表结构 注意价格字段的类型为 decimal 1.5 支付信息表结构 1.6 订单表结构 乍一看,有必要搞这么多种的时间嘛?有以下诸多原因 ...
分类:
数据库 时间:
2020-01-24 09:26:05
阅读次数:
197
一、其他类型转为字符串 1、数值型 1 itoa(i,temp,10); //将i转换为字符串放入temp中,最后一个数字表示十进制 2 ltoa(l,temp,10); //长整形转为字符串放入temp中,最后一个数字表示十进制 3 4 //浮点数 5 int decimal, sign; 6 c ...
分类:
编程语言 时间:
2020-01-21 16:26:49
阅读次数:
105
php mysql decimal 多余的0 解决方案 select id,(0+cast(price as decimal(10,2))) as price,title from goods where id=1 2 就是最多的保留小数位数 ...
分类:
数据库 时间:
2020-01-20 13:01:59
阅读次数:
117
D - Beautiful Numbers Vitaly is a very weird man. He's got two favorite digits a and b. Vitaly calls a positive integer good, if the decimal represent ...
分类:
其他好文 时间:
2020-01-16 19:06:21
阅读次数:
79
Mysql支持的数据类型 数值类型 MySQL 支持所有标准 SQL 中的数值类型,其中包括严格数值类型(INTEGER、SMALLINT、 DECIMAL 和 NUMERIC),以及近似数值数据类型(FLOAT、REAL 和 DOUBLE PRECISION),并在此基础上做了扩展。扩展后增加了 ...
分类:
数据库 时间:
2020-01-16 00:57:54
阅读次数:
102
SELECT ISNULL(DB_NAME(DATABASE_ID),'RESOURCEDB') AS DATABASENAME, CAST(COUNT(ROW_COUNT) * 8.0 /(1024.0) AS DECIMAL(28,2)) AS 'SIZE(MB)' FROM SYS.dm_os... ...
分类:
数据库 时间:
2020-01-14 13:01:44
阅读次数:
148
Given an integer n. No-Zero integer is a positive integer which doesn't contain any 0 in its decimal representation. Return a list of two integers [A, ...
分类:
其他好文 时间:
2020-01-14 09:17:43
阅读次数:
100
1.重要的重复:键的数据类型 1)数字相关 tinyint 255 int 65535 bigint 42亿 decimal 十进制小数,实际是字符串保存,有精度的小数。 float 浮点型 保留有限位小数 double 双精度 保留双倍有限位小数 2)字符相关 char 固定长度,查询速度快,节约 ...
分类:
数据库 时间:
2020-01-12 00:13:45
阅读次数:
126