Conversions Between Strings and Other Types
You can convert numbers, Booleans, or date/time values to a string.
It is also possible to convert in the opposite direction.
You can convert a string value to a number, Boolean
, or DateTime
, if the contents of the string are almost the same as these types when converted to a string.
If this is not possible, a run-time error occurs.
Almost all primitive data types have a shared method Parse
that tries to convert from a string.
These include Boolean
, DateTime
, Fixed64
, Fixed128
, Int8
, Int16
, Int32
, Int64
, Int128
, Real32
, Real64
, Real128
, UInt8
, UInt16
, UInt32
, UInt64
, and UInt128
.
Convert numbers to strings
TODO
Convert strings to numbers
TODO
See also
TODO