---
title: "gsql_to_uint()"
component: "gsql-ref"
version: "3.11"
module: "ddl-and-loading"
html_url: "/gsql-ref/3.11/ddl-and-loading/functions/token/gsql_to_uint"
canonical_url: "https://www.tigergraph.com/docs/gsql-ref/3.11/ddl-and-loading/functions/token/gsql_to_uint"
markdown_url: "https://www.tigergraph.com/docs/gsql-ref/3.11/ddl-and-loading/functions/token/gsql_to_uint.md"
---

[View as HTML](https://www.tigergraph.com/docs/gsql-ref/3.11/ddl-and-loading/functions/token/gsql_to_uint)

# gsql_to_uint()

Converts the string representation of an unsigned integer to an unsigned integer.

* If the input string is the string representation of an unsigned int, the function returns that integer.
* If the input string is the string representation of a non-negative float, the function returns that number cast as an int.

## Syntax

`gsql_to_uint(in_string)`

## Parameters

in\_string

The input string representation of an unsigned integer.

## Return type

`UINT`

## Example

gsql_to_uint("15") -> 15
