1、Math.PI 返回π的值 2、Math.round(a)对a四舍五入取近似值(整数);Math.pow(x,y)求x的y次幂;Math.sqrt(a)求a 的平方根;Math.abs(a)求a的绝对值 3、Math.ceil(a)取a上舍入整数(即取整+1);Math.floor(a)取a下舍 ...
分类:
编程语言 时间:
2020-06-07 21:23:45
阅读次数:
175
Excel表列名称 1. 地址 https://leetcode-cn.com/problems/excel-sheet-column-title/ 2. 思路 进制转换的题目,但是对边界条件的处理并不是很好想 这题我看了题解: https://leetcode-cn.com/problems/ex ...
分类:
其他好文 时间:
2020-06-06 23:08:33
阅读次数:
82
#SQL注入之MYSQL 总体上先判断是否有注入点(数字型还是字符型) ?法?:单引号法 ' ?法?:逻辑法 and 1=1 and 1=2 1' and '1'='1 1' and '1'='2 ?法三:运算法 -1 ##联合查询 条件:前提是前后查询视图必须拥有相 同数量的列,列也必需拥有相同的 ...
分类:
数据库 时间:
2020-06-06 13:07:58
阅读次数:
103
JAVA:Math.ceil() , Math.floor()
C: ceil(), floor() ...
分类:
编程语言 时间:
2020-06-06 10:59:13
阅读次数:
67
前言 一位正在学习前端的菜鸟,虽菜,但还未放弃。 给大家画张图了解思路 以下是代码 function randomArr(arr,num){ let newArr = [];//创建一个新数组 for (let i = 0; i < 30; i++) { let temp = Math.floor( ...
分类:
编程语言 时间:
2020-06-05 21:06:22
阅读次数:
98
Math.abs、Math.max、Math.min、Math.floor、Math.ceil、Math.round、Math.pow、Math.sqrt、Math.random、Math.trunc、Math.sign ...
分类:
其他好文 时间:
2020-06-03 20:23:27
阅读次数:
104
Math.random():获取0~1随机数Math.floor() method rounds a number DOWNWARDS to the nearest integer, and returns the result. (小于等于 x,且与 x 最接近的整数。)其实返回值就是该数的整数位 ...
分类:
其他好文 时间:
2020-06-02 23:05:56
阅读次数:
90
1.绝对值:abs select abs(-2) value from dual; 2.取整函数(大):ceil select ceil(-2.001) value from dual;(-2) 3.取整函数(小):floor select floor(-2.001) value from dual ...
分类:
数据库 时间:
2020-06-02 13:19:37
阅读次数:
88
1.指定范围生成随机数 function random(min, max) { if (arguments.length 2) { return Math.floor(min + Math.random() * ((max + 1) - min)) } else { return null; } } ...
分类:
编程语言 时间:
2020-06-01 12:14:08
阅读次数:
250
常见的一些SQL函数, 包含数值, 字符串, 日期和IF, CASE等函数 -- 数值函数 -- ROUND 四舍五入, CEILING,最大值 SELECT ROUND(5.73, 1); SELECT CEILING(5.7); SELECT FLOOR(5.2); SELECT ABS(-5. ...
分类:
数据库 时间:
2020-05-28 00:34:08
阅读次数:
78