Difference between revisions of "Documentation/How Tos/Calc: TEXT function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
m
 
Line 19: Line 19:
 
=== Example: ===
 
=== Example: ===
 
<tt>'''TEXT(12.34567;"###.##")'''</tt>
 
<tt>'''TEXT(12.34567;"###.##")'''</tt>
: returns the text <tt>'''12.35'''</tt>, if in your locale <tt>'''###.##'''</tt> is a format code meaning "up to three integer digits and at most two decimal digits".
+
: returns the text <tt>'''12.35'''</tt>, if in your locale <tt>'''###.##'''</tt> in a format code meaning: "up to three integer digits and at most two decimal digits".
  
 
{{SeeAlso|EN|
 
{{SeeAlso|EN|

Latest revision as of 11:00, 25 February 2024



TEXT

Converts a number into text according to a given format.

Syntax:

TEXT(number; format)

returns number converted to text, according to the format code specified by format.
Example format codes are found in the Format → Cells… dialogue, in the box labelled Format Code. These depend on your locale.
This function should therefore not be regarded as portable.

Example:

TEXT(12.34567;"###.##")

returns the text 12.35, if in your locale ###.## in a format code meaning: "up to three integer digits and at most two decimal digits".



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_TEXT_function&oldid=260143"
Views
Personal tools
Navigation
Tools