1<?xml version="1.0" encoding="UTF-8"?>
2<helpdocument version="1.0">
3
4<!--***********************************************************
5 *
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements.  See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership.  The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the
11 * "License"); you may not use this file except in compliance
12 * with the License.  You may obtain a copy of the License at
13 *
14 *   http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 * KIND, either express or implied.  See the License for the
20 * specific language governing permissions and limitations
21 * under the License.
22 *
23 ***********************************************************-->
24
25
26
27
28<meta>
29      <topic id="textscalcguideformat_valuexml" indexer="include" status="PUBLISH">
30         <title xml-lang="en-US" id="tit">Formatting Numbers With Decimals</title>
31         <filename>/text/scalc/guide/format_value.xhp</filename>
32      </topic>
33   </meta>
34   <body>
35<bookmark xml-lang="en-US" branch="index" id="bm_id3145367"><bookmark_value>numbers;formatting decimals</bookmark_value>
36      <bookmark_value>formats; numbers in tables</bookmark_value>
37      <bookmark_value>tables; number formats</bookmark_value>
38      <bookmark_value>defaults; number formats in spreadsheets</bookmark_value>
39      <bookmark_value>decimal places;formatting numbers</bookmark_value>
40      <bookmark_value>formatting;numbers with decimals</bookmark_value>
41      <bookmark_value>formatting;adding/deleting decimal places</bookmark_value>
42      <bookmark_value>number formats; adding/deleting decimal places in cells</bookmark_value>
43      <bookmark_value>deleting; decimal places</bookmark_value>
44      <bookmark_value>decimal places; adding/deleting</bookmark_value>
45</bookmark><comment>mw changed "numbers;"</comment>
46<paragraph xml-lang="en-US" id="hd_id3145367" role="heading" level="1" l10n="U" oldref="4"><variable id="format_value"><link href="text/scalc/guide/format_value.xhp" name="Formatting Numbers With Decimals">Formatting Numbers With Decimals</link>
47</variable></paragraph>
48      <paragraph xml-lang="en-US" id="par_id3148576" role="paragraph" l10n="U" oldref="5">Enter a number into the sheet, for example, 1234.5678. This number will be displayed in the default number format, with two decimal places. You will see 1234.57 when you confirm the entry. Only the display in the document will be rounded off; internally, the number retains all four decimal places after the decimal point.</paragraph>
49      <paragraph xml-lang="en-US" id="par_id3154012" role="paragraph" l10n="U" oldref="12">To format numbers with decimals:</paragraph>
50      <list type="ordered">
51         <listitem>
52            <paragraph xml-lang="en-US" id="par_id3147394" role="listitem" l10n="U" oldref="6">Set the cursor at the number and choose <emph>Format - Cells</emph> to start the <emph>Format Cells</emph> dialog.</paragraph>
53         </listitem>
54         <listitem>
55            <paragraph xml-lang="en-US" id="par_id3153157" role="listitem" l10n="U" oldref="9">On the <emph>Numbers</emph> tab you will see a selection of predefined number formats. In the bottom right in the dialog you will see a preview of how your current number would look if you were to give it a particular format.</paragraph>
56         </listitem>
57      </list>
58      <table id="tbl_id3149121">
59         <tablerow>
60            <tablecell>
61               <paragraph xml-lang="en-US" id="par_id3155766" role="paragraph" l10n="E">
62<image id="img_id3149021" src="res/commandimagelist/sc_numberformatincdecimals.png" width="0.222in" height="0.222in"><alt xml-lang="en-US" id="alt_id3149021">Icon</alt>
63	</image></paragraph>
64            </tablecell>
65            <tablecell>
66               <paragraph xml-lang="en-US" id="par_id3149256" role="paragraph" l10n="CHG" oldref="10">If you only want to modify the number of the decimal places displayed, the easiest method is to use the <emph>Number Format: Add Decimal Place</emph> or <emph>Number Format: Delete Decimal Place</emph> icons on the Formatting Bar.</paragraph>
67            </tablecell>
68         </tablerow>
69      </table>
70
71      <section id="relatedtopics">
72         <embed href="text/scalc/guide/format_value_userdef.xhp#format_value_userdef"/>
73         <embed href="text/scalc/guide/currency_format.xhp#currency_format"/>
74         <embed href="text/shared/01/05020301.xhp#zahlenformatcodes"/>
75         <embed href="text/scalc/guide/text_numbers.xhp#text_numbers"/>
76      </section>
77   </body>
78</helpdocument>