---
url: >-
  /statelake/scripting-reference/functions-and-procedures/conversion-functions/int64tostr.md
---

# Int64ToStr

**Int64ToStr** converts a **Integer** (of **Int64** data type) into a **String** data type. Pease refer to [Integer (Integer, Cardinal, Int64)](/statelake/scripting-reference/data-types/integer-integer-cardinal-int64-longint) for additional information.

The variable in this example **MyAmount** must be of **Int64** data type.

This is commonly used when you need to build a **String**, and concatenate an **Integer** value.

Declaration: Function Int64ToStr( Value : Extended) : string

Example

```pascal
procedure OnMapEvent(var Value:Variant);
var
  MyAmount : Int64;
begin
  MyAmount := 123456789012345678;
  Value := Int64ToStr(MyAmount); //Value will be equal to '123456789012345678'
end;
```
