HaxeAPI
  • Version development @ 8053257
    • 3.4.7
    • 4.0.5
    • 4.1.3
    • 4.2.5
    • 4.3.7
    • Development
  • Download Haxe
  • Learn Haxe
    • Introduction
    • Manual
    • Code Cookbook
    • API Documentation
    • Videos
    • Try Haxe online
    • Haxelib
  • Connect
    • Github
    • Bug reports
    • Stack Overflow
    • Forums
    • Discord
    • Gitter
    • Blog
    • Facebook
    • #haxe
    • @haxelang
    • @haxe_org
    • Contact
View source

abstract Int

no package

to Float

@:coreType@:notNull@:runtimeValue

Available on all platforms

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 also:

  • https://haxe.org/manual/types-basic-types.html

  • https://haxe.org/manual/std-math-integer-math.html

  • https://haxe.org/manual/types-nullability.html

This documentation is generated for version development @ 8053257

© 2026  Haxe Foundation | Contribute to Haxe