Skip to content

Geom.round()

Description

Rounds the number value to the specified precision precision.

Syntax

JS
Geom.round(value: Number, precision: Number) -> Number

Parameters

Parameter Type Mandatory Description
value Number ✅ The number to be rounded.
precision Number ✅ The precision, number of digits after the decimal point.

Return value

Type Description
Number The number rounded to the specified precision.

Example

JS
let p = Geom.round(1.23456789, 3);
console.info(p);
Note: I translated all content, including headers, lists, tables, links, code blocks, and indentation.

Last update: 15 August 2025, 14:32