Skip to content

Int

The standard Int type. Its precision depends on the platform.

On static targets, null cannot be assigned to Int. If this is necessary, Null<Int> can be used instead.

Std.int converts a Float to an Int, rounded towards 0. Std.parseInt converts a String to an Int.

@see https://haxe.org/manual/types-basic-types.html @see https://haxe.org/manual/std-math-integer-math.html @see https://haxe.org/manual/types-nullability.html