当前位置:网站首页>Oracle commonly used numeric functions
Oracle commonly used numeric functions
2022-08-07 15:37:00 【Let the Emperor love you】
-- 返回绝对值
select abs(100),abs(-100) from dual;
-- 返回正负值
select sign(100),sign(-100),sign(0) from dual;
-- 返回较大的最小整数
select ceil(3.1),ceil(2.8 1.3),ceil(0) from dual;
-- 返回较小的最大整数
select floor(3.1),floor(2.8 1.3),floor(0) from dual;
-- 返回X的Y次幂
select power(2.5,2),power(1.5,0),power(20,-1) from dual;
-- 返回常量e的y次幂 exp
select exp(3),exp(0),exp(-3) from dual;
-- 返回以X为底数的y的对数 log
select power(4,2),log(16,2),1/log(16,4) from dual;
-- 返回以常量e为底的y的对数 ln
select exp(3),exp(-3),ln(20.0855369),ln(0.049787068) from dual;
-- 返回x除以y的余数
select mod(23,8),mod(24,8) from dual;
-- 返回四舍五入后的值
select round(5555.6666,2.1),round(5555.6666,-2.6),round(5555.6666) from dual;
-- 返回截取后的值
select trunc(5555.66666,2.1),trunc(5555.66666,-2.6),trunc(5555.033333) from dual;
-- 返回X的平方根
select sqrt(64),sqrt(10) from dual;
边栏推荐
猜你喜欢

LeetCode hot topic HOT 100 (10. Delete the Nth node from the bottom of the linked list)
![【Verilog】时序逻辑电路 -- 有限同步状态机[补充]](/img/fc/c0b2cef16cf9acdb8be3e838ba474b.png)
【Verilog】时序逻辑电路 -- 有限同步状态机[补充]

LeetCode 热题 HOT 100(7.盛最多水的容器)

Chapter 219 New SSM Integration - Getting Through Mysql Database Control Transactions (including interview questions)

jmter中函数助手的使用
![[Principle of Database System] Chapter 3 BC Normal Form, Third Normal Form and Fourth Normal Form](/img/1a/e97745e62287fcf494d1479deaa632.png)
[Principle of Database System] Chapter 3 BC Normal Form, Third Normal Form and Fourth Normal Form

RTT学习笔记12-串口外设和串口驱动框架

TCP/UDP协议

5步详解如何运用设计思维

zabbix监控华为路由器
随机推荐
微信小程序——小程序去除文本中的<br>标签
微信小程序——点击事件 bindtap和catchtap的区别
How a Phase Locked Loop Works
【PTA】L2-033 简单计算器 (25 分)
Redis的下载与安装Windows和Linux版
MQTT X Newsletter 2022-07 | Auto update, MQTT X CLI support for MQTT 5.0, new conn command…
LeetCode 热题 HOT 100(6.正则表达式匹配)
【Verilog】时序逻辑电路 -- 有限同步状态机[补充]
实用代码使用浏览器添加书签方式来一键获取网页所需内容链接技巧分享
mysql5.7安装和配置教程(图文超详细版)
简单的网页制作期末作业——电影泰坦尼克号(4页)
网页模板 pug 基本语法
RTT学习笔记10- 设备IPC 完成量-ringbufffer-workwueue
win10 uwp 在 Grid 接收键盘消息
【数据库系统原理】第四章 高级数据库模型:弱实体集、E/R 联系到关系的转化、子类结构到关系的转化
The two day summary ([18], [19])
MySQL-Advanced CRUD
LeetCode每日两题01:旋转数组(均1200道)
JVM
LeetCode hot topic HOT 100 (4. Find the median of two positive-order arrays)