Character.ToNumber
The Unicode number of a character: the reverse of Character.FromNumber.
Group: Text and characters. Power Query M has it too: a query that uses it is written as in Power BI.
Syntax
Character.ToNumber(character as nullable text) as nullable number
| Parameter | Type | Description |
|---|---|---|
character | nullable text | A text of one character. |
Returns
nullable number. The character's code point; null when the character is null.
Examples
The number of a letter
Character.ToNumber("A")
65
A Norwegian letter
Character.ToNumber("Å")
197