Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

This function converts a text representing a number into an integerYou can additionally define the radix (base) to be used for the conversion.

 In case it is not possible to parse the text to an integer, null is returned.


Code Block
languagebash
titleSyntax
linenumberstrue
toInteger(text, radix) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
 toInteger("ff", 16) #Base 16


This example returns the number:

255


Code Block
languagebash
linenumberstrue
 toInteger("11111111", 2) #Binary


This example returns the number:

252



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
text

Status
subtletrue
titletext

Any given text representing a number.
radix

Status
subtletrue
titletext

The radix to be applied for the conversion.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber



Use cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_tointeger" and space = currentSpace()


Page properties
hiddentrue
id1


Parser function cloud
Map(error)
NotesNot possible to cast string into number in other representation different than the decimal.




Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Converts text into an integer.

Output

Status
subtletrue
titlenumber

Available since


Label