The function number_of_characters specifies the length of a given text in number of characters. The number_of_characters function ignores word processor instructions and correctly identifies Unicode characters. This function calculates the total number of characters of a text irrespective of the byte length.
number_of_characters ( input )
The result of this function is of type NUMBER.
The function has one parameter:
Classified as a character are:
Other word processor instructions are ignored.
Example:
@( number_of_characters( "abcdefgh" ) )
Result: 8.00.
The function number_of_characters operates similar to the function length; however, the result of the length function specifies the length of a given text in bytes, where the number_of_characters function gives the length of a given text in characters. This is important because when the length in bytes is calculated word processor instructions like Bold, Italic etcetera are counted whereas these are ignored by the number_of_characters function.