RoundingInterval - Global

concept brazil Updated Sep 10, 2026 1 min read c_RoundingIntervalAPI.md
Raw file servicenow.com

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.

Name Type Description
type String Can be either CPU or RAM.

RoundingInterval - getRoundedValue(Number value)

Returns the value after applying the rounding interval.

Name Type Description
value Number The value to round off
Type Description
Number The value after rounding
Search documentation
Search document titles and file paths on the brazil branch