u8
lib callCapy
function u8(value : as string, opt : dval = {}) u8u8() parses text in the range 0 through 255. Invalid, negative, or out-of-range text returns opt.fallback. The default fallback is 0.
Parameters
value : scalar value or text to convert
opt : options map with fallback and base
Return Values
An unsigned 8-bit integer, or opt.fallback.
Example
Capy
print(u8("ff", {base: 16}), "\n")