Number from String [STRTONUM]

Extracts numerical character(s) from the initial position in a string.

(Only the beginning of the string is considered. Numerical characters within the string are not found.)

Syntax

STRTONUM ("Text")

Data Types of the Arguments

String

Data Type of the Result

Number

Example

Extract the number which is the first character of the element’s ARCHICAD IFC ID (a string-type parameter). (e.g. “3MtfJD8lf96mvn65fX2qo”)

Expression

STRTONUM (ARCHICAD IFC ID)

Result

3 (for an element whose ID is “3MtfJD8lf96mvn65fX2qo”)

  • Was this Helpful ?
  • YesNo
Relevant topics
Number Series
  Defines a series of number variables. For example: [2.0, 4.0, 6.0, 8.0, 10.0]. Inputs Name Type Description Start Number The first element of the series. Step Number The difference ...
Random Number
  Defines a random number variable. Inputs Name Type Description Min Number The minimum value of the random range. Max Number The maximum value of the random range. Outputs ...
Number
  Defines a number variable. You can create a GDL object parameter from this variable in the node settings dialog. Outputs Name Type Description Variable Number The resulting variable.