Difference between revisions of "Documentation/How Tos/Calc: VALUE function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→See also:) |
m (→Syntax:) |
||
Line 5: | Line 5: | ||
=== Syntax: === | === Syntax: === | ||
− | <tt>'''VALUE (text)'''</tt> | + | <tt>'''VALUE(text)'''</tt> |
: converts <tt>'''text'''</tt> to a number. <tt>'''text'''</tt> may represent: a number, including fractions, exponential notation and (locale dependent) decimal point and thousands separator; a percentage; or a date or time (the datetime serial number is returned). | : converts <tt>'''text'''</tt> to a number. <tt>'''text'''</tt> may represent: a number, including fractions, exponential notation and (locale dependent) decimal point and thousands separator; a percentage; or a date or time (the datetime serial number is returned). | ||
Revision as of 08:20, 14 September 2008
VALUE
Returns a number, given a text representation.
Syntax:
VALUE(text)
- converts text to a number. text may represent: a number, including fractions, exponential notation and (locale dependent) decimal point and thousands separator; a percentage; or a date or time (the datetime serial number is returned).
Example:
VALUE("12")
- returns 12 as a number.
VALUE("1,234.56")
- returns 1234.56 if your locale recognises the thousands separator ',' and decimal point '.'.
VALUE("1 1/2")
- returns 1.5 (fraction).
VALUE("1E3")
- returns 1000 (exponential notation).
VALUE("50%")
- returns 0.5 (percentage).
VALUE("2009-04-03")
- returns the datetime serial number for 3rd April 2009.
See also:
TEXT, T, N, DATEVALUE, TIMEVALUE
Functions listed alphabetically, Functions listed by category