fromBinary
This function is used by Ignition's Expression language.
Descriptionβ
Returns an integer value of the binary formatted string argument. Numbers outside of the range (-231) - (231-1), and strings that are not binary numbers, return null.
Syntaxβ
fromBinary(string)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | string | A string representation of a binary. |
Resultsβ
Integer - The integer value of the specified binary.
Examplesβ
Code Snippet
fromBinary("1111") //returns 15
Code Snippet
fromBinary("-1111") //returns -15