home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 December / Chip_2003-12_cd2.bin / oo / download / f_0019 / sbasic.jar / text / sbasic / common / 03080701.xml < prev    next >
Extensible Markup Language  |  2003-01-16  |  3KB  |  55 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Funkce Sgn [Runtime]</title><meta name="filename" content="text/sbasic/common/03080701"/><meta name="language" content="en-US"/><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.Tabelle1{
  5.                 }
  6.         span.Tabelle1A{
  7.                 width:8.999cm;}
  8.         td.Tabelle1A3{
  9.                 }
  10.         p.P1{
  11.                 }
  12.         p.P2{
  13.                 }
  14.         span.T1{
  15.                 font-weight:bold;}
  16.         </style></head><body>
  17.   
  18.   
  19.   <help:to-be-embedded Eid="sgn" xmlns:help="http://openoffice.org/2000/help">
  20.   <p class="Head1"><help:link Id="66485">Funkce Sgn [Runtime]</help:link></p>
  21.   <p class="Paragraph">Vr├ít├¡ cel├⌐ ─ì├¡slo v rozsahu -1 a┼╛ 1, kter├⌐ ozna─ìuje, zda je ─ì├¡slo zadan├⌐ do funkce kladn├⌐, z├íporn├⌐ nebo nula.</p>
  22.   </help:to-be-embedded>
  23.   <p class="Paragraph"><span class="T1">Syntaxe</span>:</p>
  24.   <p class="Paragraph">Sgn (─î├¡slo) <help:key-word value="Sgn" tag="kw66485_1" xmlns:help="http://openoffice.org/2000/help"/></p>
  25.   <p class="Paragraph"><span class="T1">Vr├ícen├í hodnota</span>:</p>
  26.   <p class="Paragraph">Typu Integer</p>
  27.   <p class="Paragraph"><span class="T1">Parametr</span>:</p>
  28.   <p class="Paragraph">─î├¡slo: ─î├¡seln├╜ v├╜raz, na z├íklad─¢ kter├⌐ho bude ur─ìena n├ívratov├í hodnota funkce.</p>
  29.   <table><tr class=""><th style="text-align:left;"><span class="Tabelle1A">
  30.       <p class="TextInTable">─î├¡slo</p>
  31.      </span></th><th style="text-align:left;"><span class="Tabelle1A">
  32.       <p class="TextInTable">Vr├ícen├í hodnota</p>
  33.      </span></th></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  34.      <p class="TextInTable">z├íporn├⌐</p>
  35.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  36.      <p class="TextInTable">Funkce Sgn vr├ít├¡ hodnotu -1.</p>
  37.     </span></td></tr><tr class=""><td class="Tabelle1A3" style="text-align:left;"><span class="Tabelle1A">
  38.      <p class="TextInTable">0</p>
  39.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  40.      <p class="TextInTable">Funkce Sgn vr├ít├¡ hodnotu 0.</p>
  41.     </span></td></tr><tr class=""><td style="text-align:left;"><span class="Tabelle1A">
  42.      <p class="TextInTable">kladn├⌐</p>
  43.     </span></td><td style="text-align:left;"><span class="Tabelle1A">
  44.      <p class="TextInTable">Funkce Sgn vr├ít├¡ hodnotu 1.</p>
  45.     </span></td></tr></table>
  46.   <p class="Paragraph"/>
  47.   <p class="P2">P┼Ö├¡klad:</p>
  48.   <p class="PropText">Sub ExampleSgn</p>
  49.   <p class="PropText">Print sgn(-10) REM returns -1</p>
  50.   <p class="PropText">Print sgn(0) <text:s text:c="2" xmlns:text="http://openoffice.org/2000/text"/>REM returns 0</p>
  51.   <p class="PropText">Print sgn(10) <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>REM returns 1</p>
  52.   <p class="PropText">end sub</p>
  53.   <p class="PropText"/>
  54.  </body></html>
  55.