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

tolong()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Converts the input value to a long (signed 64-bit) number representation.

Note

When possible, use long literals instead.

Syntax

tolong(value)

Learn more about syntax conventions.

Parameters

Name Type Required Description
value scalar ✔️ The value to convert to a long.

Returns

If conversion is successful, the result is a long number. If conversion isn't successful, the result is null.

Example

tolong("123") == 123