Skip to content
FutureBlitz

    Install

    Import std.core.parse

    Int32

    std.core.parse

    extend

    Extend Int32

    Reading an Int32 from text.

    std/core/parse.fb, line 55

    • @PanicsAtCaller Public Static Method Parse(text: String, base: Int = 10): Int32? static method #

      The Int32 text writes in base, or Null: Int.Parse("42"), Int.Parse("ff", 16).

      Examples

      Expect(Int.Parse("42") == 42)
      Expect(Int.Parse("-7") == -7)
      Expect(Int.Parse("ff", 16) == 255)
      Expect(Int.Parse("4x") == Null)

    Report an issue with this page or with FutureBlitz on GitHub.