Skip to content

KBE3D / KBCore / turf / round

函数: round()

round(num: number, precision?: number): number

Function

Round number to precision

参数

num

number

Number

precision?

number

Precision

返回

number

rounded number

示例

ts
turf.round(120.4321)
//=120

turf.round(120.4321, 2)
//=120.43

KBE3D @3.0.0 Copyright © 2024-present KBE3D