码迷,mamicode.com
首页 >  
搜索关键字:decimal    ( 1358个结果
C - Beautiful Now
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
LeetCode 166. Fraction to Recurring Decimal(模拟)
"题目" 题意:给出一个分数的分子和分母,给出这个分数的小数形式的字符串模式。循环的部分用( 括上。 题解:模拟除法,判断循环体。 ...
分类:其他好文   时间:2020-01-27 15:50:43    阅读次数:70
Java电商支付系统手把手实现(二) - 数据库表设计的最佳实践
1 数据库设计 1.1 表关系梳理 仔细思考业务关系,得到如下表关系图 1.2 用户表结构 1.3 分类表结构 id=0为根节点,分类其实是树状结构 1.4 商品表结构 注意价格字段的类型为 decimal 1.5 支付信息表结构 1.6 订单表结构 乍一看,有必要搞这么多种的时间嘛?有以下诸多原因 ...
分类:数据库   时间:2020-01-24 09:26:05    阅读次数:197
C++数据类型转换
一、其他类型转为字符串 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 解决方案
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
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支持的数据类型 数值类型 MySQL 支持所有标准 SQL 中的数值类型,其中包括严格数值类型(INTEGER、SMALLINT、 DECIMAL 和 NUMERIC),以及近似数值数据类型(FLOAT、REAL 和 DOUBLE PRECISION),并在此基础上做了扩展。扩展后增加了 ...
分类:数据库   时间:2020-01-16 00:57:54    阅读次数:102
SqlServer内存占用查看
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
1317. Convert Integer to the Sum of Two No-Zero Integers
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
MySQL基础之?表连接、约束、外键、分组、分页、排序、唯一索引
1.重要的重复:键的数据类型 1)数字相关 tinyint 255 int 65535 bigint 42亿 decimal 十进制小数,实际是字符串保存,有精度的小数。 float 浮点型 保留有限位小数 double 双精度 保留双倍有限位小数 2)字符相关 char 固定长度,查询速度快,节约 ...
分类:数据库   时间:2020-01-12 00:13:45    阅读次数:126
1358条   上一页 1 ... 11 12 13 14 15 ... 136 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!