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

# Long

> Longs are positive and negative whole 64-bit unsigned numbers without decimals. If you need to work with decimals, use the Float data type. To represent a long number in the code as a literal, suffix it with an 'L', for example, 'Long l = 576460752303423488L;'

Longs are positive and negative whole 64-bit unsigned numbers without decimals. If you need to work with decimals, use the Float data type.
To represent a long number in the code as a literal, suffix it with an "L", for example, "Long l = 576460752303423488L;"

## Constructors

### Long()

```crmscript theme={null}
Long Long()
```

Default constructor.

### Long(Integer)

```crmscript theme={null}
Long Long(Long value)
```

Pass a value to copy into a new object.

### Long(Integer)

```crmscript theme={null}
Long Long(Integer value)
```

Pass a value to copy into a new object.

## Methods

## toString()

Converts a numeric value to its string representation.

One of the most frequently used methods, typically when you are going to output something.

```crmscript theme={null}
String toString()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String)

**Example:**

```crmscript theme={null}
Long c = 576460752303423488L;
String s = c.toString();
```

## isNull()

Returns true if it has no value and false if it does.

```crmscript theme={null}
Bool isNull()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool)

<Note>
  A NULL/NUL/NIL Long is different from zero, in that it is conceptually without a value. However, when a null Long is used naively, CRMScript is usually forgiving and interprets it as zero.
</Note>

**Example:**

```crmscript theme={null}
Long i;
printLine(i.isNull().toString());
i = 0;
printLine(i.isNull().toString());
```

## getHighInteger()

Returns the high 32-bit Integer of the Long.

```crmscript theme={null}
Integer getHighInteger()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer)

**Example:**

```crmscript theme={null}
Long c = 576460752303423488L;
print(c.getHighInteger().toString());
```

## getLowInteger()

Returns the low 32-bit Integer of the Long.

```crmscript theme={null}
Integer getLowInteger()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer)

**Example:**

```crmscript theme={null}
Long c = 576460752303423488L;
print(c.getLowInteger().toString());
```


## Related topics

- [NSFieldInfoLongText](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoLongText.md)
- [SuperOffice.WebApi.Data.FieldInfoLongText](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoLongText.md)
- [String](/en/automation/crmscript/reference/CRMScript.Global.String.md)
- [Namespace CRMScript.Global](/en/automation/crmscript/reference/CRMScript.Global.md)
- [SuperOffice.WebApi.Data.ShipmentMessageEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.ShipmentMessageEntity.md)
- [Phone formatter](/en/api/localization/phoneformatter.md)
