1<?xml version="1.0" encoding="UTF-8"?> 2 3<!--*********************************************************** 4 * 5 * Licensed to the Apache Software Foundation (ASF) under one 6 * or more contributor license agreements. See the NOTICE file 7 * distributed with this work for additional information 8 * regarding copyright ownership. The ASF licenses this file 9 * to you under the Apache License, Version 2.0 (the 10 * "License"); you may not use this file except in compliance 11 * with the License. You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, 16 * software distributed under the License is distributed on an 17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18 * KIND, either express or implied. See the License for the 19 * specific language governing permissions and limitations 20 * under the License. 21 * 22 ***********************************************************--> 23 24<helpdocument version="1.0"> 25<meta> 26<topic id="textscalc01func_numbervaluexml" indexer="include" status="PUBLISH"> 27<title id="tit" xml-lang="en-US">NUMBERVALUE</title> 28<filename>/text/scalc/01/func_numbervalue.xhp</filename> 29</topic> 30</meta> 31<body> 32<bookmark xml-lang="en-US" branch="index" id="bm_id3155591"> 33<bookmark_value>NUMBERVALUE function</bookmark_value> 34<bookmark_value>text to number conversion</bookmark_value> 35</bookmark> 36<bookmark xml-lang="en-US" branch="hid/SC_HID_FUNC_NUMBERVALUE" id="bm_id3155592" localize="false"/> 37<paragraph role="heading" id="hd_id3155590" xml-lang="en-US" level="2" l10n="U"><variable id="numbervalue"><link href="text/scalc/01/func_numbervalue.xhp">NUMBERVALUE</link> 38</variable></paragraph> 39<paragraph role="paragraph" id="par_id3155593" xml-lang="en-US" l10n="U"><ahelp hid="HID_FUNC_NUMBERVALUE">Converts text to a number, using explicitly specified decimal and group separators.</ahelp></paragraph> 40<paragraph role="heading" id="hd_id3155594" xml-lang="en-US" level="3" l10n="U">Syntax</paragraph> 41<paragraph role="code" id="par_id3155595" xml-lang="en-US" l10n="U">NUMBERVALUE(Text; DecimalSeparator; GroupSeparator)</paragraph> 42<paragraph role="paragraph" id="par_id3155596" xml-lang="en-US" l10n="U"><emph>Text</emph> is the text to be converted to a number.</paragraph> 43<paragraph role="paragraph" id="par_id3155597" xml-lang="en-US" l10n="U"><emph>DecimalSeparator</emph> (optional) is the character used as the decimal separator. If omitted, the decimal separator of the locale is used.</paragraph> 44<paragraph role="paragraph" id="par_id3155598" xml-lang="en-US" l10n="U"><emph>GroupSeparator</emph> (optional) holds the characters used as group (thousands) separators. If omitted, the group separator of the locale is used, unless it is the decimal separator.</paragraph> 45<paragraph role="paragraph" id="par_id3155603" xml-lang="en-US" l10n="NEW">Group separators are removed only before the decimal separator, spaces are ignored, and each percent sign at the end divides the result by 100. What remains must be a plain number, which may have an exponent. <emph>DecimalSeparator</emph> must be a single character that does not occur in <emph>GroupSeparator</emph>.</paragraph> 46<paragraph role="heading" id="hd_id3155599" xml-lang="en-US" level="3" l10n="U">Examples</paragraph> 47<paragraph role="paragraph" id="par_id3155600" xml-lang="en-US" l10n="U"><item type="input">=NUMBERVALUE("1.234";".";",")</item> returns 1.234.</paragraph> 48<paragraph role="paragraph" id="par_id3155601" xml-lang="en-US" l10n="U"><item type="input">=NUMBERVALUE("1.234,56";",";".")</item> returns 1234.56.</paragraph> 49<paragraph role="paragraph" id="par_id3155602" xml-lang="en-US" l10n="U"><item type="input">=NUMBERVALUE("123%")</item> returns 1.23.</paragraph> 50</body> 51</helpdocument> 52