Difference between revisions of "TextLength"

(Examples of non-numbers.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[category:Text Functions]]
+
[[Category:Text Functions]]
[[Category:Doc Status C]] <!-- For Lumina use, do not change -->
 
 
   
 
   
 
==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") &rarr; 11</code>
 +
:<code>[[TextLength]]("啕晦") &rarr; 2</code>
 +
:<code>[[TextLength]]( Pi ) &rarr; 5</code>  &nbsp;&nbsp;&nbsp;&nbsp; { With suffix 4-digits, Pi becomes "3.141" }
 +
:<code>[[TextLength]]([[Null]]) &rarr; 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


You are not allowed to post comments.