1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*94e420e4Smseidel
3ce44d6c1SAndrew Rist<!--***********************************************************
4*94e420e4Smseidel *
5ce44d6c1SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
6ce44d6c1SAndrew Rist * or more contributor license agreements.  See the NOTICE file
7ce44d6c1SAndrew Rist * distributed with this work for additional information
8ce44d6c1SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
9ce44d6c1SAndrew Rist * to you under the Apache License, Version 2.0 (the
10ce44d6c1SAndrew Rist * "License"); you may not use this file except in compliance
11ce44d6c1SAndrew Rist * with the License.  You may obtain a copy of the License at
12*94e420e4Smseidel *
13ce44d6c1SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14*94e420e4Smseidel *
15ce44d6c1SAndrew Rist * Unless required by applicable law or agreed to in writing,
16ce44d6c1SAndrew Rist * software distributed under the License is distributed on an
17ce44d6c1SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18ce44d6c1SAndrew Rist * KIND, either express or implied.  See the License for the
19ce44d6c1SAndrew Rist * specific language governing permissions and limitations
20ce44d6c1SAndrew Rist * under the License.
21*94e420e4Smseidel *
22ce44d6c1SAndrew Rist ***********************************************************-->
23ce44d6c1SAndrew Rist
24*94e420e4Smseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26*94e420e4Smseidel<topic id="textscalcguideformat_valuexml" indexer="include" status="PUBLISH">
27*94e420e4Smseidel<title xml-lang="en-US" id="tit">Formatting Numbers With Decimals</title>
28*94e420e4Smseidel<filename>/text/scalc/guide/format_value.xhp</filename>
29*94e420e4Smseidel</topic>
30*94e420e4Smseidel</meta>
31*94e420e4Smseidel<body>
32*94e420e4Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3145367">
33*94e420e4Smseidel<bookmark_value>numbers;formatting decimals</bookmark_value>
34*94e420e4Smseidel<bookmark_value>formats; numbers in tables</bookmark_value>
35*94e420e4Smseidel<bookmark_value>tables; number formats</bookmark_value>
36*94e420e4Smseidel<bookmark_value>defaults; number formats in spreadsheets</bookmark_value>
37*94e420e4Smseidel<bookmark_value>decimal places;formatting numbers</bookmark_value>
38*94e420e4Smseidel<bookmark_value>formatting;numbers with decimals</bookmark_value>
39*94e420e4Smseidel<bookmark_value>formatting;adding/deleting decimal places</bookmark_value>
40*94e420e4Smseidel<bookmark_value>number formats; adding/deleting decimal places in cells</bookmark_value>
41*94e420e4Smseidel<bookmark_value>deleting; decimal places</bookmark_value>
42*94e420e4Smseidel<bookmark_value>decimal places; adding/deleting</bookmark_value>
43cdf0e10cSrcweir</bookmark><comment>mw changed "numbers;"</comment>
44cdf0e10cSrcweir<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>
45cdf0e10cSrcweir</variable></paragraph>
46*94e420e4Smseidel<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>
47*94e420e4Smseidel<paragraph xml-lang="en-US" id="par_id3154012" role="paragraph" l10n="U" oldref="12">To format numbers with decimals:</paragraph>
48*94e420e4Smseidel<list type="ordered">
49*94e420e4Smseidel<listitem>
50*94e420e4Smseidel<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>
51*94e420e4Smseidel</listitem>
52*94e420e4Smseidel<listitem>
53*94e420e4Smseidel<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>
54*94e420e4Smseidel</listitem>
55*94e420e4Smseidel</list>
56*94e420e4Smseidel<table id="tbl_id3149121">
57*94e420e4Smseidel<tablerow>
58*94e420e4Smseidel<tablecell>
59*94e420e4Smseidel<paragraph xml-lang="en-US" id="par_id3155766" role="paragraph" l10n="E">
60cdf0e10cSrcweir<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>
61*94e420e4Smseidel</image></paragraph>
62*94e420e4Smseidel</tablecell>
63*94e420e4Smseidel<tablecell>
64*94e420e4Smseidel<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>
65*94e420e4Smseidel</tablecell>
66*94e420e4Smseidel</tablerow>
67*94e420e4Smseidel</table>
68*94e420e4Smseidel<section id="relatedtopics">
69*94e420e4Smseidel<embed href="text/scalc/guide/format_value_userdef.xhp#format_value_userdef"/>
70*94e420e4Smseidel<embed href="text/scalc/guide/currency_format.xhp#currency_format"/>
71*94e420e4Smseidel<embed href="text/shared/01/05020301.xhp#zahlenformatcodes"/>
72*94e420e4Smseidel<embed href="text/scalc/guide/text_numbers.xhp#text_numbers"/>
73*94e420e4Smseidel</section>
74*94e420e4Smseidel</body>
75*94e420e4Smseidel</helpdocument>
76