Skip to content

Type Conversion

str()

|| x -> int
|| y -> string

val x = 1
val y = x.str()

Used in replacement of .toString()

num()

|| a -> string
|| b -> int

val a = "1"
val b = a.num()

Used in replacement of .toNumber()