toint()
Converts the input to an integer value (signed 32-bit) number representation.
Note
When possible, use int literals instead.
Syntax
toint(
value)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
value | scalar | ✔️ | The value to convert to an integer. |
Returns
If the conversion is successful, the result will be an integer. Otherwise, the result will be null
.
Example
print toint("123") == 123
Output
print_0 |
---|
true |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for