KScript docs
EN

hex fields and methods

A field is a plain fact about the value, read with a dot and no brackets: $value.name. A method takes arguments or does work, and is called with ->: $value->name(arguments), or with the value piped in: $value |> name(arguments).

Fields

FieldTypeDescription
.bytesnumberHow many bytes it holds: half its number of digits.

From KScript.Core

#hex->to_number() → number

Its value as a number: 'ff' gives 255.
Example
<let name="x" type="hex" value="'0xFF80'" />
<echo>{ $x->to_number() }</echo>
$x: hex = '0xFF80'
echo $x->to_number()

Methods from any

Methods from string