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

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Automated text replacement %s)
m
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE:N function}}
 +
{{Documentation/CalcFunc InformationTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_ISTEXT_function
 +
|NextPage=Documentation/How_Tos/Calc:_NA_function
 +
}}__NOTOC__
  
 
== N ==
 
== N ==
Line 24: Line 29:
  
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: ISNUMBER function|ISNUMBER]]
 
* [[Documentation/How_Tos/Calc: ISNUMBER function|ISNUMBER]]
 
* [[Documentation/How_Tos/Calc: VALUE function|VALUE]]
 
* [[Documentation/How_Tos/Calc: VALUE function|VALUE]]
Line 30: Line 35:
 
* [[Documentation/How_Tos/Calc: TEXT function|TEXT]]
 
* [[Documentation/How_Tos/Calc: TEXT function|TEXT]]
 
* [[Documentation/How_Tos/Calc: FIXED function|FIXED]]
 
* [[Documentation/How_Tos/Calc: FIXED function|FIXED]]
* [[Documentation/How_Tos/Calc: DECIMAL function|DECIMAL]]'''
+
* [[Documentation/How_Tos/Calc: DECIMAL function|DECIMAL]]
  
* [[Documentation/How_Tos/Calc: Information functions|Information functions]]'''
+
* [[Documentation/How_Tos/Calc: Information functions|Information functions]]
  
 
* [[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]]}}
 
+
[[Category: Documentation/Reference/Calc/Information functions]]
===Issues: ===
+
<tt>'''N()'''</tt> in Calc will convert text to a number, but in Excel it will not. The ODFF standard deliberately does not specify a behaviour. Use <tt>'''VALUE()'''</tt> to convert from text to number.
+

Latest revision as of 13:29, 31 January 2024

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.




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