---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# RoundingInterval - Global

# RoundingInterval - Global {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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.

## RoundingInterval - RoundingInterval(String type) {#ariaid-title2}

Creates an instance of the RoundingInterval class.
{#r_RI-RoundingInterval_S__table_pvy_tnr_pt__entry__3}

| Name | Type | Description |
|-|-|-|
| type | String | Can be either CPU or RAM. |
[Table 1. Parameters]

{#r_RI-RoundingInterval_S__table_pvy_tnr_pt}

## RoundingInterval - getRoundedValue(Number value) {#ariaid-title3}

Returns the value after applying the rounding interval.
{#r_RI-getRoundedValue_N__table_nqs_34r_pt__entry__3}

| Name | Type | Description |
|-|-|-|
| value | Number | The value to round off |
[Table 2. Parameters]

{#r_RI-getRoundedValue_N__table_nqs_34r_pt} {#r_RI-getRoundedValue_N__table_oqs_34r_pt__entry__2}

| Type | Description |
|-|-|
| Number | The value after rounding |
[Table 3. Returns]

{#r_RI-getRoundedValue_N__table_oqs_34r_pt}

