TO_INT function

TO_INT function

Function Name Description Usage Input parameter Return value
TO_INT Converts a string to an integer. TO_INT() N/A An integer.

Supported data type

The TO_INT function supports the following data types:

  • JSON
  • String

Example: Convert a string to an integer

Sample data: $var1$ = "35"

Usage: $var1$.TO_INT()

Convert var1 to integer.

Output: 35

Recommendation

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月09日 UTC.