Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

RoundingInterval- Global

The RoundingInterval script include provides methods that handle all the details of rounding intervals for CPU speed and RAM size.

Use in any server-side Discovery script.

Parent Topic:Server API reference

RoundingInterval - RoundingInterval(String type)

Creates an instance of the RoundingInterval class.

NameTypeDescription
typeStringCan be either CPU or RAM.

RoundingInterval - getRoundedValue(Number value)

Returns the value after applying the rounding interval.

NameTypeDescription
valueNumberThe value to round off
TypeDescription
NumberThe value after rounding