N function

From Apache OpenOffice Wiki
Jump to: navigation, search

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