EXPAND ALL
  • Home

atoi

This function parses a string into a 64-bit integer if possible, otherwise it returns the default value.

Returns: INT64

Integer version of string, if parsing succeeded otherwise the default value passed in.

Arguments

VariableTypeDescription
arg1STRINGThe string to convert
arg2INT64The default integer value to return if conversion fails

Examples:

df.val = px.atoi(df.int_as_str_col, -1)
This site uses cookies to provide you with a better user experience. By using Pixie, you consent to our use of cookies.