当前位置:网站首页>Kotlin 常用知识点汇总
Kotlin 常用知识点汇总
2022-07-25 23:12:00 【享哥。】
val s="%.2f".format(8.956244) //8.96 数字四舍五入 2位小数
数字去尾法到2位小数
val format = DecimalFormat("0.##")
//未保留小数的舍弃规则,RoundingMode.FLOOR表示直接舍弃。
format.roundingMode = RoundingMode.FLOOR
val s2 = format.format(8.956756) //8.95
边栏推荐
- The difference between MySQL clustered index and non clustered index
- Week 2: convolutional neural network
- 类和对象(2)(6个默认成员函数)
- Single model common sense reasoning first surpasses human beings! HFL summit openbookqa challenge
- The difference between abstract classes and interfaces
- Wamp MySQL empty password
- Hj9 extract non duplicate integers
- Unity uses macros
- POI特效 市场调研
- PCL basic operation Encyclopedia
猜你喜欢

Basic knowledge of radar

Discuz atmosphere game style template / imitation lol hero League game DZ game template GBK

Learning notes of technical art hundred people plan (2) -- vector

Single model common sense reasoning first surpasses human beings! HFL summit openbookqa challenge

OASYS system of code audit

内存分页与调优,内核与用户空间

How painful is it to write unit tests?

WebMvcConfigurationSupport

POI特效 市场调研

Network Security Learning (16)
随机推荐
Thinkphp6 temporarily close the layout
Ma Tiji Wanmin hall Chef
The difference between overloading and rewriting
【论文笔记】A Meta-Reinforcement Learning Algorithm for Causal Discovery
Stack and stack class
Notification设置的小图标显示的是小方块
The difference between "= =" and equals
技术美术百人计划学习笔记(2)--向量
Analysis of direction finding error of multi baseline interferometer system
[tensorflow] about seed
IPFs of Internet Protocol
Design of Butterworth filter and drawing of amplitude frequency characteristic curve
Unity 使用宏
CTS测试方法「建议收藏」
AI chief architect 12 AICA industrial landing analysis under the industrial production process optimization scenario
Zero crossing position search of discrete data (array)
The VM session was closed before any attempt to power it on
serialization and deserialization
Network Security Learning notes-1 file upload
技术美术百人计划学习笔记(1)--基础渲染管线