---
title: standardScaleNear
summary: Function in @bimworks/viewercommon.
order: 10
languages: [javascript]
sdk-package: JavaScript · @bimworks/viewercommon
---

# standardScaleNear

[[page:reference/javascript/api|API catalogue]] · `@bimworks/viewercommon` · Function

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
function standardScaleNear
````



## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/bimworks-viewercommon/standardscalenear-bce2f912#member-bimworks-viewercommon-standardscalenear-9d2c8c43c8fe|standardScaleNear]] | Method | The standard sheet scale nearest to 1:n within options.tolerance (relative, default 0.02), metric unless options.system is "imperial"; null when none is that… |

## `standardScaleNear` {#member-bimworks-viewercommon-standardscalenear-9d2c8c43c8fe}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
standardScaleNear(n: number, options?: { system?: "metric" | "imperial"; tolerance?: number }): { label: string; n: number; offPercent: number } | null
````

The standard sheet scale nearest to 1:n within options.tolerance (relative, default 0.02), metric unless
options.system is "imperial"; null when none is that close

### Parameters

| Name | Type | Description |
|---|---|---|
| `n` | `number` |  |
| `options` | `{ system?: "metric" \| "imperial"; tolerance?: number }` |  |
