home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #3 / K-CD-3-2002.ISO / OpenOffice / f_0066 / common.jar / text / common / 01 / 05020301.xml < prev    next >
Encoding:
Extensible Markup Language  |  2001-09-11  |  26.0 KB  |  329 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Number Format Codes</title><meta name="filename" content="text/common/01/05020301"/><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.         table.Tabelle6{
  5.                 margin-left:0cm; margin-right:0.005cm;}
  6.         span.Tabelle6A{
  7.                 width:3.316cm;}
  8.         span.Tabelle6B{
  9.                 width:14.676cm;}
  10.         table.Tabelle1{
  11.                 }
  12.         span.Tabelle1A{
  13.                 width:8.999cm;}
  14.         table.Tabelle2{
  15.                 }
  16.         span.Tabelle2A{
  17.                 width:8.999cm;}
  18.         table.Tabelle3{
  19.                 }
  20.         span.Tabelle3A{
  21.                 width:8.999cm;}
  22.         td.Tabelle3A1{
  23.                 }
  24.         table.Tabelle4{
  25.                 }
  26.         span.Tabelle4A{
  27.                 width:8.999cm;}
  28.         td.Tabelle4A1{
  29.                 }
  30.         table.Tabelle8{
  31.                 }
  32.         span.Tabelle8A{
  33.                 width:4.001cm;}
  34.         span.Tabelle8B{
  35.                 width:13.998cm;}
  36.         table.Tabelle5{
  37.                 }
  38.         span.Tabelle5A{
  39.                 width:8.999cm;}
  40.         table.Tabelle7{
  41.                 }
  42.         span.Tabelle7A{
  43.                 width:1.499cm;}
  44.         span.Tabelle7B{
  45.                 width:16.498cm;}
  46.         tr.Tabelle71{
  47.                 }
  48.         td.Tabelle7A1{
  49.                 }
  50.         p.P1{
  51.                 }
  52.         p.P2{
  53.                 }
  54.         p.P3{
  55.                 }
  56.         span.T1{
  57.                 font-weight:bold;}
  58.         span.fr1{
  59.                 }
  60.         </style></head><body>
  61.   
  62.   
  63.   <p class="P1"/>
  64.   <p class="Head1">Number Format Codes <help:key-word value="number format code" tag="kw65744_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="format code" tag="kw65744_20" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="formats; number format code" tag="kw65744_19" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="conditions; in number formats" tag="kw65744_18" xmlns:help="http://openoffice.org/2000/help"/></p>
  65.   <p class="Paragraph">The number format codes (under <help:link Id="65738" xmlns:help="http://openoffice.org/2000/help"><span class="T1">Format - Cell - Number format</span></help:link>can consist of up to three sections separated by a semicolon (;).</p>
  66.   <ul class="L1">
  67.    <li class="">
  68.     <p class="P2">If the code has two sections, the first represents positive values and zero, and the second negative values.</p>
  69.    </li>
  70.    <li class="">
  71.     <p class="P2">If a code has three sections, the first is for positive values, the second for negative values and the third for zero.</p>
  72.    </li>
  73.   </ul>
  74.   <ul class="L2">
  75.    <li class="">
  76.     <p class="P3">You can also define conditions yourself, in this case you can make the first section of hits dependent on the first condition, the second section dependent on the second condition and the third section will only be run if the first two conditions do not apply. <help:link Id="65744" Eid="einbeispiel" xmlns:help="http://openoffice.org/2000/help">An example</help:link> is found at the end of this page.</p>
  77.    </li>
  78.   </ul>
  79.   <p class="Paragraph">Use the <span class="T1">Standard</span> format to display numbers as integers and fractions as decimals. Use <span class="T1">Scientific</span> to display numbers which exceed the width of the cell.</p>
  80.   <p class="Paragraph">To display a certain number of digits (0 or #) to the left and right of the decimal separator (period), insert the separator in the number format. If the format only contains the number sign (#) to the left of the decimal separator, numbers which are less than 1 will begin with a period.</p>
  81.   <p class="Paragraph">To create placeholders for numbers, enter the following format codes in a section. If the number has more places to the right of the decimal point than there are placeholders in the format, the number will be rounded according to the number of placeholders. If the number contains more digits left of the decimal point than are placeholders in the format, the actual numbers will be displayed.</p>
  82.   <table><tr class=""><th style="text-align:left;"><span class="Tabelle6A">
  83.       <p class="TableHead"><span class="T1">Placeholders</span></p>
  84.      </span></th><th style="text-align:left;"><span class="Tabelle6B">
  85.       <p class="TableHead"><span class="T1">Explanation</span></p>
  86.      </span></th></tr><tr class=""><td style="text-align:left;"><span class="Tabelle6A">
  87.      <p class="TextInTable">#</p>
  88.     </span></td><td style="text-align:left;"><span class="Tabelle6B">
  89.      <p class="TextInTable">doesn't display extra zeros.</p>
  90.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle6A">
  91.      <p class="TextInTable">0 (Zero)</p>
  92.     </span></td><td style="text-align:left;"><span class="Tabelle6B">
  93.      <p class="TextInTable">displays extra zeros if the number has less places than zeros in the format.</p>
  94.     </span></td></tr></table>
  95.   <p class="Paragraph"/>
  96.   <table><tr class=""><th style="text-align:left;"><span class="Tabelle1A">
  97.       <p class="TableHead"><span class="T1">Number Format</span></p>
  98.      </span></th><th style="text-align:left;"><span class="Tabelle1A">
  99.       <p class="TableHead"><span class="T1">Format Code</span></p>
  100.      </span></th></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  101.      <p class="TextInTable">3456.78 as 3456.8</p>
  102.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  103.      <p class="TextInTable">####.#</p>
  104.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  105.      <p class="TextInTable">9.9 as 9.900</p>
  106.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  107.      <p class="TextInTable">#.000</p>
  108.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  109.      <p class="TextInTable">13 as 13.0 and 1234.567 as 1234.57</p>
  110.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  111.      <p class="TextInTable">#.0#</p>
  112.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  113.      <p class="TextInTable">5.75 as 5 3/4 and 6.3 as 6 3/10</p>
  114.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  115.      <p class="TextInTable"># ???/???</p>
  116.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  117.      <p class="TextInTable">.5 as 0.5</p>
  118.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  119.      <p class="TextInTable">0.##</p>
  120.     </span></td></tr></table>
  121.   <p class="Paragraph"/>
  122.   <p class="Paragraph"><help:key-word value="fractions; entering" tag="kw65744_17" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="entering; fractions" tag="kw65744_16" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="numbers; entering fractions" tag="kw65744_15" xmlns:help="http://openoffice.org/2000/help"/>The number of question marks indicates how many digits can be included in the numerator and denominator in fractions. Fractions that do not fit the pattern are displayed as floating point numbers.</p>
  123.   <p class="Paragraph">To display a comma as a thousand separator or to scale a number with a factor of a thousand, insert a comma in the number format.</p>
  124.   <table><tr class=""><th style="text-align:left;"><span class="Tabelle2A">
  125.       <p class="TableHead"><span class="T1">Number Format</span></p>
  126.      </span></th><th style="text-align:left;"><span class="Tabelle2A">
  127.       <p class="TableHead"><span class="T1">Format Code</span></p>
  128.      </span></th></tr><tr class=""><td style="text-align:left;"><span class="Tabelle2A">
  129.      <p class="TextInTable">15000 as 15,000</p>
  130.     </span></td><td style="text-align:left;"><span class="Tabelle2A">
  131.      <p class="TextInTable">#,###</p>
  132.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle2A">
  133.      <p class="TextInTable">16000 as 16</p>
  134.     </span></td><td style="text-align:left;"><span class="Tabelle2A">
  135.      <p class="TextInTable">#,</p>
  136.     </span></td></tr></table>
  137.   <p class="Paragraph"/>
  138.   <p class="Paragraph">You can set a color for a section of the format by inserting the color name in square brackets.</p>
  139.   <table><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  140.      <p class="TextInTable">CYAN</p>
  141.     </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  142.      <p class="TextInTable">GREEN</p>
  143.     </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  144.      <p class="TextInTable">BLACK</p>
  145.     </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  146.      <p class="TextInTable">BLUE</p>
  147.     </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  148.      <p class="TextInTable">MAGENTA</p>
  149.     </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  150.      <p class="TextInTable">RED</p>
  151.     </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  152.      <p class="TextInTable">WHITE</p>
  153.     </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  154.      <p class="TextInTable">YELLOW</p>
  155.     </span></td></tr></table>
  156.   <p class="Paragraph"/>
  157.   <p class="Head2"><help:key-word value="date formats" tag="kw65744_14" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="format; date formats" tag="kw65744_13" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="numbers; date formats" tag="kw65744_12" xmlns:help="http://openoffice.org/2000/help"/>Number Format Codes for Date Formats</p>
  158.   <p class="Paragraph">To display days, months and years, insert the following format codes.</p>
  159.   <table><tr class=""><th class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  160.       <p class="TableHead"><span class="T1">Format</span></p>
  161.      </span></th><th class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  162.       <p class="TableHead"><span class="T1">Format Code</span></p>
  163.      </span></th></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  164.      <p class="TextInTable">Month as 3.</p>
  165.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  166.      <p class="TextInTable">M</p>
  167.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  168.      <p class="TextInTable">Month as 03.</p>
  169.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  170.      <p class="TextInTable">MM</p>
  171.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  172.      <p class="TextInTable">Month as Jan-Dec</p>
  173.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  174.      <p class="TextInTable">MMM</p>
  175.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  176.      <p class="TextInTable">Month as January-December</p>
  177.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  178.      <p class="TextInTable">MMMM</p>
  179.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  180.      <p class="TextInTable">First letter of Name of Month</p>
  181.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  182.      <p class="TextInTable">MMMMM</p>
  183.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  184.      <p class="TextInTable">Day as 2.28.</p>
  185.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  186.      <p class="TextInTable">D</p>
  187.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  188.      <p class="TextInTable">Day as 02</p>
  189.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  190.      <p class="TextInTable">DD</p>
  191.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  192.      <p class="TextInTable">Day as Sun-Sat</p>
  193.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  194.      <p class="TextInTable">NN or DDD</p>
  195.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  196.      <p class="TextInTable">Day as Sunday to Saturday</p>
  197.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  198.      <p class="TextInTable">NNN or DDDD</p>
  199.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  200.      <p class="TextInTable">Day followed by comma, as in "Sunday,"</p>
  201.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  202.      <p class="TextInTable">NNNN</p>
  203.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  204.      <p class="TextInTable">Year as 00-99</p>
  205.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  206.      <p class="TextInTable">YY</p>
  207.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  208.      <p class="TextInTable">Year as 1900-2078</p>
  209.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  210.      <p class="TextInTable">YYYY</p>
  211.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  212.      <p class="TextInTable">Calendar week</p>
  213.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  214.      <p class="TextInTable">WW</p>
  215.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  216.      <p class="TextInTable">Quarterly as Q1 to Q4</p>
  217.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  218.      <p class="TextInTable">Q</p>
  219.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  220.      <p class="TextInTable">Quarterly as 1st quarter to 4th quarter</p>
  221.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  222.      <p class="TextInTable">QQ</p>
  223.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  224.      <p class="TextInTable">Era on the Japanese Gengou calendar, single character (possible values are: M, D, S, H)</p>
  225.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  226.      <p class="TextInTable">G</p>
  227.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  228.      <p class="TextInTable">Era, abbreviation</p>
  229.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  230.      <p class="TextInTable">GG</p>
  231.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  232.      <p class="TextInTable">Era, full name</p>
  233.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  234.      <p class="TextInTable">GGG</p>
  235.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  236.      <p class="TextInTable">Number of the year within an era, without a leading zero for single-digit years</p>
  237.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  238.      <p class="TextInTable">E</p>
  239.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  240.      <p class="TextInTable">Number of the year within an era, with a leading zero for single-digit years</p>
  241.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  242.      <p class="TextInTable">EE or R</p>
  243.     </span></td></tr><tr class=""><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  244.      <p class="TextInTable">Era, full name and year</p>
  245.     </span></td><td class="Tabelle4A1" style="text-align:left;"><span class="Tabelle4A">
  246.      <p class="TextInTable">RR or GGGEE</p>
  247.     </span></td></tr></table>
  248.   <p class="Paragraph"/>
  249.   <p class="Paragraph">You can adopt the following character strings into the format code if you want to use a certain calendar format. If there is no specific code entered, OpenOffice.org will choose the best-possible calendar to be used.</p>
  250.   <table><tr class=""><td style="text-align:left;"><span class="Tabelle8A">
  251.      <p class="Paragraph">[~gregorian]</p>
  252.     </span></td><td style="text-align:left;"><span class="Tabelle8B">
  253.      <p class="Paragraph">Gregorian Calendar</p>
  254.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle8A">
  255.      <p class="Paragraph">[~gengou]</p>
  256.     </span></td><td style="text-align:left;"><span class="Tabelle8B">
  257.      <p class="Paragraph">Japanese Gengou Calendar</p>
  258.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle8A">
  259.      <p class="Paragraph">[~ROC]</p>
  260.     </span></td><td style="text-align:left;"><span class="Tabelle8B">
  261.      <p class="Paragraph">Korean Calendar</p>
  262.     </span></td></tr></table>
  263.   <p class="Paragraph"/>
  264.   <p class="Paragraph">All calendar formats are dependent upon the "locale" setting, which you can select in <span class="T1">Tools - Options - Language settings - Languages</span>. An example: The date format code, E, EE, R or RR switches the calendar to the first non-Gregorian calendar that is entered in the current locale setting. If you use a Japanese locale setting this is the Gengou calendar. If you use a Korean locale setting this is the ROC calendar. If no other calendar is entered in the locale setting, the Gregorian calendar is used.</p>
  265.   <p class="Head2"><help:key-word value="time formats" tag="kw65744_11" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="formats; time formats" tag="kw65744_10" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="numbers; time formats" tag="kw65744_9" xmlns:help="http://openoffice.org/2000/help"/>Number Format Codes for Time Formats</p>
  266.   <p class="Paragraph">To display hours, minutes and seconds insert the following format codes.</p>
  267.   <table><tr class=""><th style="text-align:left;"><span class="Tabelle5A">
  268.       <p class="TableHead"><span class="T1">Format</span></p>
  269.      </span></th><th style="text-align:left;"><span class="Tabelle5A">
  270.       <p class="TableHead"><span class="T1">Format Code</span></p>
  271.      </span></th></tr><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  272.      <p class="TextInTable">Hours as 0-23</p>
  273.     </span></td><td style="text-align:left;"><span class="Tabelle5A">
  274.      <p class="TextInTable">h</p>
  275.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  276.      <p class="TextInTable">Hours as 00-23</p>
  277.     </span></td><td style="text-align:left;"><span class="Tabelle5A">
  278.      <p class="TextInTable">hh</p>
  279.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  280.      <p class="TextInTable">Minutes as 0-59</p>
  281.     </span></td><td style="text-align:left;"><span class="Tabelle5A">
  282.      <p class="TextInTable">m</p>
  283.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  284.      <p class="TextInTable">Minutes as 00-59</p>
  285.     </span></td><td style="text-align:left;"><span class="Tabelle5A">
  286.      <p class="TextInTable">mm</p>
  287.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  288.      <p class="TextInTable">Seconds as 0-59</p>
  289.     </span></td><td style="text-align:left;"><span class="Tabelle5A">
  290.      <p class="TextInTable">s</p>
  291.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle5A">
  292.      <p class="TextInTable">Seconds as 00-59</p>
  293.     </span></td><td style="text-align:left;"><span class="Tabelle5A">
  294.      <p class="TextInTable">ss</p>
  295.     </span></td></tr></table>
  296.   <p class="Paragraph"/>
  297.   <table><tr class="Tabelle71"><th class="Tabelle7A1" style="text-align:left;"><span class="Tabelle7A">
  298.       <p class="Paragraph"><draw:image draw:style-name="fr1" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="65980" xlink:type="simple" xlink:show="embed" xlink:actuate="onRequest" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/>
  299.       </p>
  300.      </span></th><th class="Tabelle7A1" style="text-align:left;"><span class="Tabelle7B">
  301.       <p class="TextInTable">You can also use the decimal point in format code to display fractions of seconds. For example, with the code hh:mm:ss,00 you show the time as 01:02:03,45.</p>
  302.      </span></th></tr></table>
  303.   <p class="Paragraph"/>
  304.   <p class="Paragraph"><help:key-word value="time format; over 24 hours" tag="kw65744_8" xmlns:help="http://openoffice.org/2000/help"/>To show a time with more than 24 hours or more than 60 minutes or seconds, place the outer left part of the code in square brackets. For example, the time code [h]:mm:ss will display more than 24 hours.</p>
  305.   <p class="Paragraph">You can calculate with time formats as you would with number formats. This is useful, for example, for subtraction such as: Duration=End time-Start time.</p>
  306.   <p class="Paragraph">If a time is entered in the form 02:03,45 or 01:02:03,45 or 25:01:02, the following formats will be assigned if no other time format is set: MM:SS,00 or [HH]:MM:SS,00 or [HH]:MM:SS. For addition and subtraction of times, the value of the cell is displayed in a format according to the result. For example, this follows the pattern =End time - Start time or =(End time - Start time)*24*Hourly rate.</p>
  307.   <p class="Head2"><help:key-word value="currency formats" tag="kw65744_7" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="formats; currency formats" tag="kw65744_6" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="numbers; currency formats" tag="kw65744_5" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="Euro; currency formats" tag="kw65744_4" xmlns:help="http://openoffice.org/2000/help"/>Number Format Codes of Currency Formatss</p>
  308.   <p class="Paragraph">For the currency format the currency symbol that is available according to the locale setting is specified as the default, if you have selected <span class="T1">Default</span> as the language. The Euro currency can be entered with the following format code:</p>
  309.   <p class="Paragraph">#.##0,00 "EUR";[ROT]-#.##0,00 "EUR"</p>
  310.   <p class="Paragraph">Instead of EUR, you also can press the key that generates the euro character on your system. This character may not be available in the character set used in your editing field. However, the character should appear correctly in your document if you use a font that contains the character. <help:switch select="Program" xmlns:help="http://openoffice.org/2000/help"><help:case select="WRITER">In the <span class="T1">Number Format</span> dialog</help:case><help:default>In the <span class="T1">Numbers</span> tab</help:default></help:switch>, you can select the number format Europe for the currency category. There you will find several format codes with the euro symbol.</p>
  311.   <p class="Head2">Number Format Codes for Text and Spaces</p>
  312.   <p class="Paragraph">To display symbols, either enclose the symbol in double quotation marks or place a backslash (\) before it.</p>
  313.   <p class="Paragraph">To create a space the width of a character in the code format, insert an underscore (_) followed by this sign. By entering an underscore and a closing bracket, for example, positive numbers will be displayed flush with negative numbers in brackets.</p>
  314.   <p class="Paragraph">To include text in a number format, insert the @ sign in the format. The text entered will be formatted according to the section containing the @ sign. If the format does not contain any text, the text you enter will not be affected by the format.</p>
  315.   <p class="Head2">Other Number Format Codes</p>
  316.   <p class="Paragraph">To display numbers as percentages, (i.e., the number is multiplied by 100) add the percent sign to the number format.</p>
  317.   <p class="Head3">Scientific Format</p>
  318.   <p class="Paragraph">To display numbers in scientific format, add the following format codes to a section. If a format contains a 0 or the # sign to the right of an E-, E+, e- or e+, OpenOffice.org will display the number in scientific format and adds an "E" or an "e." The number of zeros or # signs to the right determine the number of exponential places. E- or e- will show a minus sign for negative exponents. E+ or e+ will display a minus sign in negative exponents and a plus sign in positive exponents.</p>
  319.   <p class="Head3">Formats with Prefixes and Suffixes</p>
  320.   <p class="Paragraph">You can add text extensions to number formats (prefixes and suffixes) and format cells with these codes. For example, define the following format code:</p>
  321.   <p class="PropText">0 "plus";0 "minus";0 "Null"</p>
  322.   <p class="Paragraph">Using this code, the cell values are displayed as rounded integers, with the text enclosed in quotation marks added as a suffix (the text is displayed without quotation marks in the cell).</p>
  323.   <p class="Paragraph">In this example, by entering "1" in a cell the result will be "1 plus." Entering "-5" will produce "5 minus."</p>
  324.   <p class="Head3"><a name="einbeispiel"/><help:key-word value="number format code; with conditions" tag="kw65744_3" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="conditions; for number format codes" tag="kw65744_2" xmlns:help="http://openoffice.org/2000/help"/>Conditions in Number Formats</p>
  325.   <p class="Paragraph">You can directly include conditions as comparisons to numbers in the format code. Look at the following example:</p>
  326.   <p class="PropText">[<=4][GREEN]#.##0,00;[>7][RED]#.##0,00;[BLUE]#.##0,00</p>
  327.   <p class="Paragraph">In this case a cell is formatted in the number format #.##0,00. If the value in the cell is smaller that or equal to 4 the text color green will be used, red will be used for a value over 7. The text color blue will be used in all other cases.</p>
  328.   <p class="Paragraph">The relational operators <, <=, >, >=, = and <> can be used in combination with any number whatsoever.</p>
  329.  </body></html>