Berserk Docs
Scalar FunctionsType Functions

asint

Extract a 32-bit integer from a dynamic or pass through an int/long value. Other types (or out-of-range) become null.

Syntax

asint(value)

Parameters

Prop

Type

Returns: int

Examples

Example 1

print asint(dynamic(42))
print_0 (int)
42

On this page