> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class: Long

> Not exported: an exported type refers to it.

[browser](/api/modules/browser).Long

Not exported: an exported type refers to it.

## Constructors

### constructor

• **new Long**(`low`, `high`)

#### Parameters

| Name | Type |
| :- | :- |
| `low` | `number` |
| `high` | `number` |

## Properties

### low

• **low**: `number`

***

### high

• **high**: `number`

***

### \_\_isUnsignedLong\_\_

• **\_\_isUnsignedLong\_\_**: `boolean`

## Methods

### isLong

▸ `Static` **isLong**(`obj`): `boolean`

#### Parameters

| Name | Type |
| :- | :- |
| `obj` | [`Long`](/api/classes/browser.Long) |

#### Returns

`boolean`

***

### fromBytesLE

▸ `Static` **fromBytesLE**(`bytes`): [`Long`](/api/classes/browser.Long)

#### Parameters

| Name | Type |
| :- | :- |
| `bytes` | `number`\[] |

#### Returns

[`Long`](/api/classes/browser.Long)

***

### toBytesLE

▸ **toBytesLE**(): `number`\[]

#### Returns

`number`\[]

***

### fromNumber

▸ `Static` **fromNumber**(`value`): [`Long`](/api/classes/browser.Long)

#### Parameters

| Name | Type |
| :- | :- |
| `value` | `number` |

#### Returns

[`Long`](/api/classes/browser.Long)

***

### toString

▸ **toString**(): `string`

#### Returns

`string`

***

### equals

▸ **equals**(`other`): `boolean`

#### Parameters

| Name | Type |
| :- | :- |
| `other` | [`Long`](/api/classes/browser.Long) |

#### Returns

`boolean`

***

### notEquals

▸ **notEquals**(`other`): `boolean`

#### Parameters

| Name | Type |
| :- | :- |
| `other` | [`Long`](/api/classes/browser.Long) |

#### Returns

`boolean`

***

### comp

▸ **comp**(`other`): `1` | `0` | `-1`

#### Parameters

| Name | Type |
| :- | :- |
| `other` | [`Long`](/api/classes/browser.Long) |

#### Returns

`1` | `0` | `-1`

***

### lessThanOrEqual

▸ **lessThanOrEqual**(`other`): `boolean`

#### Parameters

| Name | Type |
| :- | :- |
| `other` | [`Long`](/api/classes/browser.Long) |

#### Returns

`boolean`

***

### fromValue

▸ `Static` **fromValue**(`val`): [`Long`](/api/classes/browser.Long)

#### Parameters

| Name | Type |
| :- | :- |
| `val` | `any` |

#### Returns

[`Long`](/api/classes/browser.Long)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.