home *** CD-ROM | disk | FTP | other *** search
/ Enter 2004 February / ENTER.ISO / files / OO / f_0327 / scalc.jar / text / scalc / guide / integer_leading_zero.xml < prev    next >
Encoding:
Extensible Markup Language  |  2003-08-01  |  4.7 KB  |  56 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Entering a Number with Leading Zeros</title><meta name="filename" content="text/scalc/guide/integer_leading_zero"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         p.P1{
  5.                 }
  6.         p.P2{
  7.                 }
  8.         p.P3{
  9.                 }
  10.         span.T1{
  11.                 font-weight:bold;}
  12.         </style></head><body>
  13.   
  14.   
  15.   <p class="P1"/>
  16.   <p class="Head1"><help:paragraphinfo state="U" number="67" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="zero values; entering leading zeros" tag="kw68083_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="numbers; with leading zeros" tag="kw68083_8" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="leading zeros; entering/suppressing" tag="kw68083_7" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="integers; with leading zeros" tag="kw68083_6" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="integer_leading_zero" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68083">Entering a Number with Leading Zeros</help:link></help:to-be-embedded></p>
  17.   <help:paragraphinfo state="E" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="inttext" xmlns:help="http://openoffice.org/2000/help">
  18.   <p class="Paragraph"><help:paragraphinfo state="U" number="55"/>There are various ways to enter integers starting with a zero:</p>
  19.   <ul class="L1">
  20.    <li class="">
  21.     <p style=""><help:paragraphinfo state="U" number="56"/>Enter the number as text. The easiest way is to enter the number starting with an apostrophe (for example, '0987). The apostrophe will not appear in the cell, and the number will be formatted as text. Because it is in text format, however, you cannot calculate with this number.</p>
  22.    </li>
  23.    <li class="">
  24.     <p style=""><help:paragraphinfo state="U" number="57"/>Format a cell with a number format such as \0000. This format can be assigned in the <span style="font-weight:bold;">Format code</span> field under the <span style="font-weight:bold;">Format - Cells - Numbers</span> tab, and defines the cell display as "always put a zero first and then the integer, having at least three places, and filled with zeros at the left if less than three digits".</p>
  25.    </li>
  26.   </ul>
  27.   <p class="Paragraph"><help:paragraphinfo state="U" number="66"/><help:key-word value="numbers; changing text/number format" tag="kw68083_5"/><help:key-word value="cells; changing text/number format" tag="kw68083_4"/><help:key-word value="formats; changing text/number" tag="kw68083_3"/><help:key-word value="text; changing to number" tag="kw68083_2"/></p>
  28.   <p class="Paragraph"><help:paragraphinfo state="U" number="58"/>If you want to apply a numerical format to a column of numbers in text format (for example, text "000123" becomes number "123"), do the following:</p>
  29.   <ol class="L2">
  30.    <li class="">
  31.     <p style=""><help:paragraphinfo state="U" number="59"/>Select the column in which the digits are found in text format. Set the cell format in that column as "Number".</p>
  32.    </li>
  33.    <li class="">
  34.     <p style=""><help:paragraphinfo state="U" number="60"/>Choose <span style="font-weight:bold;">Edit - Find & Replace</span></p>
  35.    </li>
  36.    <li class="">
  37.     <p style=""><help:paragraphinfo state="U" number="61"/>In the <span style="font-weight:bold;">Search for</span> box, enter ^[0-9]</p>
  38.    </li>
  39.    <li class="">
  40.     <p style=""><help:paragraphinfo state="U" number="62"/>In the <span style="font-weight:bold;">Replace with</span> box, enter &</p>
  41.    </li>
  42.    <li class="">
  43.     <p style=""><help:paragraphinfo state="U" number="63"/>Check <span style="font-weight:bold;">Regular expressions</span></p>
  44.    </li>
  45.    <li class="">
  46.     <p style=""><help:paragraphinfo state="U" number="64"/>Check <span style="font-weight:bold;">Current selection only</span></p>
  47.    </li>
  48.    <li class="">
  49.     <p style=""><help:paragraphinfo state="U" number="65"/>Click <span style="font-weight:bold;">Replace All</span></p>
  50.    </li>
  51.   </ol>
  52.   <help:paragraphinfo state="E"/></help:to-be-embedded>
  53.   <p class="ParaList"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="65598" Eid="related" xmlns:help="http://openoffice.org/2000/help"/></p>
  54.   <p class="ParaList"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="68077" Eid="text_numbers" xmlns:help="http://openoffice.org/2000/help"/></p>
  55.   <p class="ParaList"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="68079" Eid="format_value" xmlns:help="http://openoffice.org/2000/help"/></p>
  56.  </body></html>