Difference between revisions of "Documentation/How Tos/Calc: N function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m (→Issues:: use Issue template) |
Javier Lopez (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | {{Documentation/MasterTOC | |
+ | |bookid=1234''' | ||
+ | |booktitle=<div style="padding: 8px; font-size: 140%; font-weight: bold; background-color: #9BC0F5;">CALC FUNCTIONS</div> | ||
+ | |ShowParttitle=block|parttitle=[[Documentation/How_Tos/Calc:_Information_functions|<div style="font-size: 140%;">Information Functions]] | ||
+ | |ShowNextPage=block|NextPage=Documentation/How_Tos/Calc:_NA_function | ||
+ | |ShowPrevPage=block|PrevPage=Documentation/How_Tos/Calc:_ISTEXT_function | ||
+ | |ShowPrevPart=block|PrevPart=Documentation/How_Tos/Calc:_Financial_functions | ||
+ | |ShowNextPart=block|NextPart=Documentation/How_Tos/Calc:_Logical_functions | ||
+ | |toccontent= <div style="padding: 4px; font-size: 130%; font-weight: hidden; background-color:#DCE9FC;">FUNCTIONS</div> | ||
+ | * [[Documentation/How_Tos/Calc:_CELL_function|<div style="font-size: 120%;">Cell]] | ||
+ | * [[Documentation/How_Tos/Calc:_CURRENT_function|<div style="font-size: 120%;">Current]] | ||
+ | * [[Documentation/How_Tos/Calc:_FORMULA_function|<div style="font-size: 120%;">Formula]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISBLANK_function|<div style="font-size: 120%;">Isblank]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISERR_function|<div style="font-size: 120%;">Iserr]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISERROR_function|<div style="font-size: 120%;">Iserror]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISEVEN_function|<div style="font-size: 120%;">Iseven]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISEVEN_ADD_function|<div style="font-size: 120%;">Iseven Add]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISLOGICAL_function|<div style="font-size: 120%;">Islogical]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISNA_function|<div style="font-size: 120%;">Isna]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISNONTEXT_function|<div style="font-size: 120%;">Isnontext]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISNUMBER_function|<div style="font-size: 120%;">Isnumber]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISODD_function|<div style="font-size: 120%;">Isodd]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISODD_ADD_function|<div style="font-size: 120%;">Isodd Add]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISREF_function|<div style="font-size: 120%;">Isref]] | ||
+ | * [[Documentation/How_Tos/Calc:_ISTEXT_function|<div style="font-size: 120%;">Istext]] | ||
+ | * [[Documentation/How_Tos/Calc:_N_function|<div style="font-size: 120%; border-style: double; border-color:#778899;">N]] | ||
+ | * [[Documentation/How_Tos/Calc:_NA_function|<div style="font-size: 120%;">Na]] | ||
+ | * [[Documentation/How_Tos/Calc:_TYPE_function|<div style="font-size: 120%;">Type]] | ||
+ | }}__TOC__ | ||
== N == | == N == | ||
Returns the numeric value. | Returns the numeric value. |
Revision as of 04:41, 1 June 2013
CALC FUNCTIONS
- Information Functions
- CellCurrentFormulaIsblankIserrIserrorIsevenIseven AddIslogicalIsnaIsnontextIsnumberIsoddIsodd AddIsrefIstext
Contents
N
Returns the numeric value.
Syntax:
N(value)
- returns the numeric value of value if possible. It returns the logical values TRUE and FALSE as 1 and 0 respectively.
- N() is not intended to convert text to a number - use the VALUE() function instead.
Example:
N(123)
- returns 123, because 123 is (already) a number.
N(TRUE)
- returns 1.
N(A3)
- where A3 contains FALSE, returns 0.
Issues:
N() in Calc will sometimes convert text to a number, but in Excel will always return text as 0. In Calc N("4") returns 0 in OOo3 but 4 in OOo2. Issue 113739 describes some further inconsistencies in the handling of text. In fact, the ODFF standard deliberately does not specify a behaviour. It may be better to use VALUE() to convert from text to number.
Template:Documentation/SeeAlso
-