Types
to-bi
, to-bigint
- Signature
- Example
(value Any) | to-bi | (y BigInt)
88 to-bi => 88n
Coerces any value
to BigInt.
to-float
, to-f
- Signature
- Example
(value Any) | to-float | (y Float)
88 to-float => 88.0
Coerces any value
to Float.
to-int
, to-i
- Signature
- Example
(value Any) | to-int | (y Int)
"99" to-int => 99
Coerces any value
to Int.
to-string
, to-s
- Signature
- Example
(value Any) | to-string | (y String)
88 to-string => "88"
Coerces any value
to String.