--- title: "toInteger (Conversion to large integer)" slug: "calc-function-to-integer" updated: 2026-05-12T13:48:32Z published: 2026-05-12T13:48:32Z canonical: "docs.lobstersoftware.com/calc-function-to-integer" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # toInteger (Conversion to large integer) *See also*: [toBigDecimal (Conversion to large decimal integer)](/v1/docs/en/calc-function-to-big-decimal), [toLong (Conversion to large integer)](/v1/docs/en/calc-function-to-long), [toNumber (Conversion to native number)](/v1/docs/en/calc-function-to-number), [toString (Convert to a string)](/v1/docs/en/calc-function-to-string) > [!NOTE] > Attempts to convert a given input value into an integer of the "Integer" type. > > > [!TIP] > > Tooltip > > > > Syntax: *$toInteger(any)* > > > > | Parameter | Description | > > | --- | --- | > > | `any` | Any value (or object), which will be converted. | > > > > If the input value cannot be converted, nothing (null ) is returned. > > > > Example: $toInteger(1234) → Returns an object of the "Integer" type which has the numeric value "1234". ## Syntax *$toInteger(any)* ## Parameter | Name | Description | | --- | --- | | any | An arbitrary value (or object), which will be converted. | ## Return value If the input value cannot be converted, nothing (null) is returned. ## Examples | Syntax | Result | | --- | --- | | $toInteger(1234) | Returns an object of the "Integer" type, which has the numeric value 1234. | | $toInteger($input) | Tries to convert the input value of the expression. |