Difference between revisions of "Documentation/How Tos/Calc: CHAR function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
|||
Line 13: | Line 13: | ||
<tt>'''CHAR(72)'''</tt> | <tt>'''CHAR(72)'''</tt> | ||
: returns <tt>'''H'''</tt>, representing character code 72. | : returns <tt>'''H'''</tt>, representing character code 72. | ||
+ | |||
+ | {{Documentation/Note|The international standard ODFF will introduce the more versatile functions <tt>'''UNICODE'''</tt> and <tt>'''UNICHAR'''</tt>, which will be implemented in Calc.}} | ||
{{Documentation/SeeAlso| | {{Documentation/SeeAlso| | ||
Line 21: | Line 23: | ||
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | ||
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
− | |||
− | |||
− |
Revision as of 09:33, 2 March 2009
CHAR
Returns a single text character, given a character code.
Syntax:
CHAR(number)
- number is the character code, in the range 1-255.
- CHAR uses your system's character mapping (for example iso-8859-1, iso-8859-2, Windows-1252, Windows-1250) to determine which character to return. Codes greater than 127 may not be portable.
Example:
CHAR(72)
- returns H, representing character code 72.