你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

toint()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

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