---
title: "NumericValue | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/NumericValue/"
---

# NumericValue

> [`NumericValue`](#numericvalue)

## Enumerations

### Units

#### Enumeration Members

| Enumeration Member | Value |
| ------ | ------ |
|  `pixel` | `"px"` |
|  `point` | `"pt"` |

## Classes

### NumericValue

#### Constructors

##### Constructor

```ts
new NumericValue(value?, unit?): NumericValue;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `value?` | `number` |
| `unit?` | [`Units`](#units) |

###### Returns

#### Properties

##### unit

```ts
unit: Units;
```

##### value

```ts
value: number;
```

#### Methods

##### equals()

```ts
equals(other, tolerance?): boolean;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `other` | [`NumericValue`](#numericvalue) |
| `tolerance?` | `number` |

###### Returns

`boolean`

##### toString()

```ts
toString(): string;
```

###### Returns

`string`

##### equals()

```ts
static equals(
   a, 
   b, 
   tolerance?): boolean;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `a` | [`NumericValue`](#numericvalue) |
| `b` | [`NumericValue`](#numericvalue) |
| `tolerance?` | `number` |

###### Returns

`boolean`
