Difference between revisions of "TextLength"
(Examples of non-numbers.) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | [[ | + | [[Category:Text Functions]] |
− | |||
==TextLength(text)== | ==TextLength(text)== | ||
Returns the number of characters in text string «text». | Returns the number of characters in text string «text». | ||
+ | |||
+ | When a non-text value is passed in, the value is first coerced to text. This coercion uses the number format of the object that contains the expression. When [[Null]] is passed, returns zero. | ||
+ | |||
+ | == Examples == | ||
+ | :<code>[[TextLength]]("Hello world") → 11</code> | ||
+ | :<code>[[TextLength]]("啕晦") → 2</code> | ||
+ | :<code>[[TextLength]]( Pi ) → 5</code> { With suffix 4-digits, Pi becomes "3.141" } | ||
+ | :<code>[[TextLength]]([[Null]]) → 0</code> | ||
==See Also== | ==See Also== |
Latest revision as of 21:31, 25 March 2016
TextLength(text)
Returns the number of characters in text string «text».
When a non-text value is passed in, the value is first coerced to text. This coercion uses the number format of the object that contains the expression. When Null is passed, returns zero.
Examples
TextLength("Hello world") → 11
TextLength("啕晦") → 2
TextLength( Pi ) → 5
{ With suffix 4-digits, Pi becomes "3.141" }TextLength(Null) → 0
See Also
Comments
Enable comment auto-refresher