1 <?xml version=
"1.0" encoding=
"UTF-8"?>
5 ***********************************************************************
7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9 * Copyright 2008 by Sun Microsystems, Inc.
11 * OpenOffice.org - a multi-platform office productivity suite
13 * $RCSfile: format_value.xhp,v $
16 * This file is part of OpenOffice.org.
18 * OpenOffice.org is free software: you can redistribute it and/or modify
19 * it under the terms of the GNU Lesser General Public License version 3
20 * only, as published by the Free Software Foundation.
22 * OpenOffice.org is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU Lesser General Public License version 3 for more details
26 * (a copy is included in the LICENSE file that accompanied this code).
28 * You should have received a copy of the GNU Lesser General Public License
29 * version 3 along with OpenOffice.org. If not, see
30 * <http://www.openoffice.org/license.html>
31 * for a copy of the LGPLv3 License.
33 ************************************************************************
36 <helpdocument version=
"1.0">
38 <topic id=
"textscalcguideformat_valuexml" indexer=
"include" status=
"PUBLISH">
39 <title id=
"tit" xml-lang=
"en-US">Formatting Numbers With Decimals
</title>
40 <filename>/text/scalc/guide/format_value.xhp
</filename>
43 <created date=
"2003-10-31T00:00:00">Sun Microsystems, Inc.
</created>
44 <lastedited date=
"2006-03-07T14:05:23">converted from old format - fpe
</lastedited>
48 <bookmark xml-lang=
"en-US" branch=
"index" id=
"bm_id3145367"><bookmark_value>numbers; formatting in tables
</bookmark_value>
49 <bookmark_value>formats; numbers in tables
</bookmark_value>
50 <bookmark_value>tables; number formats
</bookmark_value>
51 <bookmark_value>defaults; number formats in spreadsheets
</bookmark_value>
52 <bookmark_value>decimal places;formatting numbers
</bookmark_value>
53 <bookmark_value>formatting;numbers with decimals
</bookmark_value>
54 <bookmark_value>formatting;adding/deleting decimal places
</bookmark_value>
55 <bookmark_value>number formats; adding/deleting decimal places in cells
</bookmark_value>
56 <bookmark_value>deleting; decimal places
</bookmark_value>
57 <bookmark_value>decimal places; adding/deleting
</bookmark_value>
58 </bookmark><comment>mw changed one index entry
</comment><comment>mw inserted three index entries from scalc/
02/
02160000.xhp and three index entries from scalc/
02/
02170000.xhp. Then changed three index entries and deleted two.
</comment><comment>mw deleted one
"number formats;..." entry and changed the other
</comment>
59 <paragraph role=
"heading" id=
"hd_id3145367" xml-lang=
"en-US" 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>
60 </variable></paragraph>
61 <paragraph role=
"paragraph" id=
"par_id3148576" xml-lang=
"en-US" 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>
62 <paragraph role=
"paragraph" id=
"par_id3154012" xml-lang=
"en-US" l10n=
"U" oldref=
"12">To format numbers with decimals:
</paragraph>
65 <paragraph role=
"listitem" id=
"par_id3147394" xml-lang=
"en-US" 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>
68 <paragraph role=
"listitem" id=
"par_id3153157" xml-lang=
"en-US" 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>
71 <table id=
"tbl_id3149121">
73 <tablecell colspan=
"" rowspan=
"">
74 <paragraph role=
"paragraph" id=
"par_id3155766" xml-lang=
"en-US" l10n=
"E">
75 <image id=
"img_id3149021" src=
"res/commandimagelist/sc_numberformatincdecimals.png" width=
"5.64mm" height=
"5.64mm"><alt id=
"alt_id3149021" xml-lang=
"en-US">Icon
</alt>
78 <tablecell colspan=
"" rowspan=
"">
79 <paragraph role=
"paragraph" id=
"par_id3149256" xml-lang=
"en-US" 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>
84 <section id=
"relatedtopics">
85 <embed href=
"text/scalc/guide/format_value_userdef.xhp#format_value_userdef"/>
86 <embed href=
"text/scalc/guide/currency_format.xhp#currency_format"/>
87 <embed href=
"text/shared/01/05020301.xhp#zahlenformatcodes"/>
88 <embed href=
"text/scalc/guide/text_numbers.xhp#text_numbers"/>