BILINGUAL WORD CARD · RANK 40

round

⚖️ Rounds a decimal to given precision

Rounds a floating-point number.

中文对照 · Chinese

⚖️ 精确修剪小数位数的剪刀

`round(3.14159, 2)` 会保留两位小数得到 `3.14`。

Code example

p = round(3.14159, 2)
Explore 100 bilingual word cards →