string->getNumericValue

Returns the numeric value of a character.

Target member

Signature

1string->getNumericValue(position::integer)

Returns the numeric value of a character.

string->getNumericValue is called with member syntax on a receiver value. string->getNumericValue works with text values. Normalize input at boundaries, escape at output boundaries, and keep encoding calls close to the place where the encoded text is needed.

Parameters

position
Required value of type integer. Supply position positionally unless the signature shows a keyword form.

Examples

Basic call

1'7'->getNumericValue(1)
The example shows the receiver and result shape. In templates, apply escaping at the final output boundary.