Import std.core.parse
std.core.parse
Text to numbers and Bools: Parse, a Static Method on each, which gives Null for text that isn't one, or a number that doesn't fit. It reads what Format writes, invariantly: '.' for decimals, no thousands, and NaN, Inf, and -Inf for the floats that aren't numbers.
std/core/parse.fb
Extends
Int8
extend
Extend Int8
No doc comment.
-
The Int8
textwrites inbase, or Null.
Int16
extend
Extend Int16
No doc comment.
-
The Int16
textwrites inbase, or Null.
Int32
extend
Extend Int32
No doc comment.
-
The Int32
textwrites inbase, or Null: Int.Parse("42"), Int.Parse("ff", 16).
Int64
extend
Extend Int64
No doc comment.
-
The Int64
textwrites inbase, or Null.
UInt8
extend
Extend UInt8
No doc comment.
-
The UInt8
textwrites inbase, or Null.
UInt16
extend
Extend UInt16
No doc comment.
-
The UInt16
textwrites inbase, or Null.
UInt32
extend
Extend UInt32
No doc comment.
-
The UInt32
textwrites inbase, or Null.
UInt64
extend
Extend UInt64
No doc comment.
-
The UInt64
textwrites inbase, or Null.
Float32
extend
Extend Float32
No doc comment.
-
The Float32
textwrites, or Null fortextthat isn't a float or one too big for a Float32: Float.Parse("2.5").
Float64
extend
Extend Float64
No doc comment.
-
The Float64
textwrites, or Null, which reads back every Float64 that Format writes.
Bool
extend
Extend Bool
No doc comment.
-
True for "True", False for "False", and Null for any other text.
Report an issue with this page or with FutureBlitz on GitHub.