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="textscalcguideformat_valuexml" indexer="include" status="PUBLISH"> 27<title xml-lang="en-US" id="tit">Formatting Numbers With Decimals</title> 28<filename>/text/scalc/guide/format_value.xhp</filename> 29</topic> 30</meta> 31<body> 32<bookmark xml-lang="en-US" branch="index" id="bm_id3145367"> 33<bookmark_value>numbers;formatting decimals</bookmark_value> 34<bookmark_value>formats; numbers in tables</bookmark_value> 35<bookmark_value>tables; number formats</bookmark_value> 36<bookmark_value>defaults; number formats in spreadsheets</bookmark_value> 37<bookmark_value>decimal places;formatting numbers</bookmark_value> 38<bookmark_value>formatting;numbers with decimals</bookmark_value> 39<bookmark_value>formatting;adding/deleting decimal places</bookmark_value> 40<bookmark_value>number formats; adding/deleting decimal places in cells</bookmark_value> 41<bookmark_value>deleting; decimal places</bookmark_value> 42<bookmark_value>decimal places; adding/deleting</bookmark_value> 43</bookmark><comment>mw changed "numbers;"</comment> 44<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> 45</variable></paragraph> 46<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<paragraph xml-lang="en-US" id="par_id3154012" role="paragraph" l10n="U" oldref="12">To format numbers with decimals:</paragraph> 48<list type="ordered"> 49<listitem> 50<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</listitem> 52<listitem> 53<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</listitem> 55</list> 56<table id="tbl_id3149121"> 57<tablerow> 58<tablecell> 59<paragraph xml-lang="en-US" id="par_id3155766" role="paragraph" l10n="E"> 60<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</image></paragraph> 62</tablecell> 63<tablecell> 64<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</tablecell> 66</tablerow> 67</table> 68<section id="relatedtopics"> 69<embed href="text/scalc/guide/format_value_userdef.xhp#format_value_userdef"/> 70<embed href="text/scalc/guide/currency_format.xhp#currency_format"/> 71<embed href="text/shared/01/05020301.xhp#zahlenformatcodes"/> 72<embed href="text/scalc/guide/text_numbers.xhp#text_numbers"/> 73</section> 74</body> 75</helpdocument> 76