diff options
Diffstat (limited to 'helpcontent2/source/text/scalc/01/func_numbervalue.xhp')
-rw-r--r-- | helpcontent2/source/text/scalc/01/func_numbervalue.xhp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/helpcontent2/source/text/scalc/01/func_numbervalue.xhp b/helpcontent2/source/text/scalc/01/func_numbervalue.xhp new file mode 100644 index 000000000..b0c8f385e --- /dev/null +++ b/helpcontent2/source/text/scalc/01/func_numbervalue.xhp @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<helpdocument version="1.0"> +<!-- +* This file is part of the LibreOffice project. +* +* This Source Code Form is subject to the terms of the Mozilla Public +* License, v. 2.0. If a copy of the MPL was not distributed with this +* file, You can obtain one at http://mozilla.org/MPL/2.0/. +* +* This file incorporates work covered by the following license notice: +* +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed +* with this work for additional information regarding copyright +* ownership. The ASF licenses this file to you under the Apache +* License, Version 2.0 (the "License"); you may not use this file +* except in compliance with the License. You may obtain a copy of +* the License at http://www.apache.org/licenses/LICENSE-2.0 . +--> + +<meta> + <topic id="textscalc01func_numbervaluexml" indexer="include" status="PUBLISH"> + <title xml-lang="en-US" id="tit">NUMBERVALUE </title> + <filename>/text/scalc/01/func_numbervalue.xhp</filename> + </topic> +</meta> +<body> + <bookmark xml-lang="en-US" branch="index" id="bm_id3145621"> + <bookmark_value>NUMBERVALUE function</bookmark_value> + </bookmark> + <bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_NUMBERVALUE" id="bm_id3163820" localize="false"/> + <h1 id="hd_id3145621"><variable id="numbervalue_h1"><link href="text/scalc/01/func_numbervalue.xhp">NUMBERVALUE</link></variable></h1> + <paragraph xml-lang="en-US" id="par_id3145087" role="paragraph"> + <ahelp hid="HID_FUNC_NUMBERVALUE">Converts the string representation of a number into a locale-independent numeric value.</ahelp> + </paragraph> + <embed href="text/scalc/00/avail_release.xhp#4.1"/> + <paragraph xml-lang="en-US" id="par_id3149281" role="paragraph">The input text may be in a locale-dependent or other bespoke format.</paragraph> + <paragraph role="paragraph" id="par_id381625600941159">The output number is formatted as a valid floating point value and shown using the current cell's number format.</paragraph> + <tip id="par_id351625601754290">Refer to the <link href="text/shared/01/05020300.xhp" name="num_format_link">Numbers / Format</link> help page to learn how to change the format of numbers in a cell.</tip> + <embed href="text/scalc/01/common_func.xhp#sectionsyntax"/> + <paragraph role="code" id="par_id721625602228575">NUMBERVALUE(Text[; Decimal Separator[; Group Separator]])</paragraph> + <paragraph xml-lang="en-US" id="par_id3154819" role="paragraph"><emph>Text</emph> is a string that contains the number to be converted.</paragraph> + <paragraph xml-lang="en-US" id="par_id3154820" role="paragraph"><emph>Decimal Separator</emph> is a single character that specifies the decimal separator in <emph>Text</emph>. It can be omitted if <emph>Text</emph> does not include any decimal or group separators.</paragraph> + <paragraph xml-lang="en-US" id="par_id3154821" role="paragraph"><emph>Group Separator</emph> is a string that specifies the character(s) used as the group separator in <emph>Text</emph>. It can be omitted if <emph>Text</emph> does not include any group separators. The <emph>Decimal Separator</emph> character should not be used in <emph>Group Separator</emph>.</paragraph> + <embed href="text/scalc/01/common_func.xhp#sectionexamples"/> + <paragraph xml-lang="en-US" id="par_id3155841" role="paragraph"> + <input>=NUMBERVALUE("1.234.567,89"; ","; ".")</input> returns 1234567.89 (considering en-US locale). The function removes the two group separators and changes the decimal separator from a comma to a full stop.</paragraph> + <paragraph role="paragraph" id="par_id721625603302860"> + <input>=NUMBERVALUE("123·4"; "·")</input> returns 123.4 (considering en-US locale). The function changes the decimal separator from a "·" to a full stop. No group separator is used in the supplied number and so the <emph>Group Separator</emph> argument is omitted.</paragraph> + <paragraph role="paragraph" id="par_id491625603415715"> + <input>=NUMBERVALUE("123e12")</input> returns 1.23E+14 (considering en-US locale). No decimal or group separators are used in the supplied number and so the <emph>Decimal Separator</emph> and <emph>Group Separator</emph> arguments are omitted.</paragraph> + <paragraph role="paragraph" id="par_id801625603497421"> + <input>=NUMBERVALUE("1#!234#!567"; "."; "#!")</input> returns 1234567 (considering en-US locale). Note that in this case the group separator is specified as a two-character string.</paragraph> + <tip id="par_id451626100385699">Refer to the <link href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/NUMBERVALUE" name="NUMBERVALUE_Wiki">NUMBERVALUE</link> wiki page for more details about this function.</tip> + + <section id="relatedtopics"> + <embed href="text/scalc/01/func_value.xhp#Value_h1"/> + </section> + </body> +</helpdocument> |