Difference between revisions of "Documentation/SL/How Tos/Calc: Funkcija CONVERT ADD"
From Apache OpenOffice Wiki
< Documentation | SL/How Tos
(Created page with '__NOTOC__ == CONVERT_ADD == Converts a number from one measurement system to another. This function is only available if the '''Analysis AddIn''' is installed. === Syntax: ===…') |
|||
Line 2: | Line 2: | ||
== CONVERT_ADD == | == CONVERT_ADD == | ||
− | + | Pretvori število iz enega merskega sistema v drugega. | |
− | + | Ta funkcija je na voljo le, če je nameščen '''Dodatek za analizo (Analysis AddIn)'''. | |
− | === | + | === Skladnja: === |
− | <tt>'''CONVERT_ADD( | + | <tt>'''CONVERT_ADD(število; izvorneenote; noveenote)'''</tt> |
− | : <tt>''' | + | : <tt>'''število'''</tt> je število, ki ga želimo pretvoriti. |
− | : <tt>''' | + | : <tt>'''izvorneenote'''</tt> in <tt>'''noveenote'''</tt> so besedilo, ki predstavlja izvorni in novi merski sistem. These are case-sensitive, and must be selected from the table below. Units in '''bold''' accept an optional prefix as a decimal multiplier from the table below that. |
{| border="1" cellpadding="5" cellspacing="0" style="margin: 1em auto 1em auto" | {| border="1" cellpadding="5" cellspacing="0" style="margin: 1em auto 1em auto" | ||
|- | |- | ||
− | |''' | + | |'''lastnost'''||'''enote''' |
|- | |- | ||
− | | | + | |teža||'''g''', sg, lbm, '''u''', ozm, stone, ton, grain, pweight, hweight, shweight, brton |
|- | |- | ||
− | | | + | |dolžina||'''m''', mi, Nmi, in, ft, yd, ang, Pica, ell, '''parsec''', '''lightyear''', survey_mi |
|- | |- | ||
− | | | + | |čas||yr, day, hr, mn, '''sec''', '''s''' |
|- | |- | ||
− | | | + | |pritisk||'''Pa''', '''atm''', '''at''', '''mmHg''', Torr, psi |
|- | |- | ||
− | | | + | |sila||'''N''', '''dyn''', '''dy''', lbf, '''pond''' |
|- | |- | ||
− | | | + | |energija||'''J''', '''e''', '''c''', '''cal''', '''eV''', '''ev''', HPh, '''Wh''', '''wh''', flb, BTU, btu |
|- | |- | ||
− | | | + | |moč||'''W''', '''w''', HP, PS |
|- | |- | ||
− | | | + | |jakost polja||'''T''', '''ga''' |
|- | |- | ||
− | | | + | |temperatura||C, F, '''K''', '''kel''', Reau, Rank |
|- | |- | ||
− | | | + | |prostornina||'''l''', '''L''', '''lt''', tsp, tbs, oz, cup, pt, us_pt, qt, gal, '''m3''', mi3, Nmi3, in3, ft3, yd3, ang3, Pica3, |
barrel, bushel, regton, Schooner, Middy, Glass | barrel, bushel, regton, Schooner, Middy, Glass | ||
|- | |- | ||
− | | | + | |površina||'''m2''', mi2, Nmi2, in2, ft2, yd2, '''ang2''', Pica2, Morgen, '''ar''', acre, ha |
|- | |- | ||
− | | | + | |hitrost||'''m/s''', '''m/sec''', m/h, mph, kn, admkn |
|- | |- | ||
− | | | + | |informacija||'''bit''', '''byte''' |
|} | |} | ||
Line 49: | Line 49: | ||
{| border="1" cellpadding="5" cellspacing="0" style="margin: 1em auto 1em auto" | {| border="1" cellpadding="5" cellspacing="0" style="margin: 1em auto 1em auto" | ||
|- | |- | ||
− | |''' | + | |'''predpona < 1'''||y (10<sup>-24</sup>), z (10<sup>-21</sup>), a (10<sup>-18</sup>), f (10<sup>-15</sup>), p (10<sup>-12</sup>), n (10<sup>-9</sup>), u (10<sup>-6</sup>), m (10<sup>-3</sup>), c (10<sup>-2</sup>), d (10<sup>-1</sup>) |
|- | |- | ||
− | |''' | + | |'''predpona > 1'''|| e (10<sup>1</sup>), h (10<sup>2</sup>), k (10<sup>3</sup>), M 10<sup>6</sup>), G (10<sup>9</sup>), T (10<sup>12</sup>), P (10<sup>15</sup>), E (10<sup>18</sup>), Z (10<sup>21</sup>), Y (10<sup>24</sup>) |
|} | |} | ||
− | === | + | === Primer: === |
<tt>'''CONVERT_ADD(120;"in";"ft")'''</tt> | <tt>'''CONVERT_ADD(120;"in";"ft")'''</tt> | ||
− | : | + | : vrne <tt>'''10'''</tt>, število stopal v 120 palcih. |
<tt>'''CONVERT_ADD(10;"yd";"cm")'''</tt> | <tt>'''CONVERT_ADD(10;"yd";"cm")'''</tt> | ||
− | : | + | : vrne <tt>'''914,4'''</tt>, to je 10 jardov, izraženih v centimetrih. |
=== Issues: === | === Issues: === | ||
− | * | + | * Iz zgodovinskih razlogov številne enote ne uporabljajo standardiziranih mednarodnih okrajšav. |
− | * | + | * Ta funkcija v splošnem ni združljiva z drugimi preglednicami. |
{{Documentation/SeeAlso| | {{Documentation/SeeAlso| | ||
− | * [[Documentation/How_Tos/Calc: CONVERT | + | * [[Documentation/SL/How_Tos/Calc: Funkcija CONVERT|CONVERT]] |
− | * [[Documentation/How_Tos/Calc: | + | * [[Documentation/SL/How_Tos/Calc: Matematične funkcije|Matematične funkcije]] |
− | * [[Documentation/How_Tos/Calc: | + | * [[Documentation/SL/How_Tos/Calc: Funkcije po abecedi|Funkcije po abecedi]] |
− | * [[Documentation/How_Tos/Calc: | + | * [[Documentation/SL/How_Tos/Calc: Funkcije po kategorijah|Funkcije po kategorijah]]}} |
[[Category: Documentation/Reference/Calc/Mathematical functions]] | [[Category: Documentation/Reference/Calc/Mathematical functions]] |
Revision as of 18:07, 29 May 2010
CONVERT_ADD
Pretvori število iz enega merskega sistema v drugega.
Ta funkcija je na voljo le, če je nameščen Dodatek za analizo (Analysis AddIn).
Skladnja:
CONVERT_ADD(število; izvorneenote; noveenote)
- število je število, ki ga želimo pretvoriti.
- izvorneenote in noveenote so besedilo, ki predstavlja izvorni in novi merski sistem. These are case-sensitive, and must be selected from the table below. Units in bold accept an optional prefix as a decimal multiplier from the table below that.
lastnost | enote |
teža | g, sg, lbm, u, ozm, stone, ton, grain, pweight, hweight, shweight, brton |
dolžina | m, mi, Nmi, in, ft, yd, ang, Pica, ell, parsec, lightyear, survey_mi |
čas | yr, day, hr, mn, sec, s |
pritisk | Pa, atm, at, mmHg, Torr, psi |
sila | N, dyn, dy, lbf, pond |
energija | J, e, c, cal, eV, ev, HPh, Wh, wh, flb, BTU, btu |
moč | W, w, HP, PS |
jakost polja | T, ga |
temperatura | C, F, K, kel, Reau, Rank |
prostornina | l, L, lt, tsp, tbs, oz, cup, pt, us_pt, qt, gal, m3, mi3, Nmi3, in3, ft3, yd3, ang3, Pica3,
barrel, bushel, regton, Schooner, Middy, Glass |
površina | m2, mi2, Nmi2, in2, ft2, yd2, ang2, Pica2, Morgen, ar, acre, ha |
hitrost | m/s, m/sec, m/h, mph, kn, admkn |
informacija | bit, byte |
- The above units may be preceded by a decimal multiplier. For example k (kilo) is the prefix for 103 - so km means kilometres. If the unit is a measure of area the multiplier is squared, and if it is a measure of volume the multiplier is cubed. For example km2 means square kilometres, that is 106 square metres. The following table lists the prefixes:
predpona < 1 | y (10-24), z (10-21), a (10-18), f (10-15), p (10-12), n (10-9), u (10-6), m (10-3), c (10-2), d (10-1) |
predpona > 1 | e (101), h (102), k (103), M 106), G (109), T (1012), P (1015), E (1018), Z (1021), Y (1024) |
Primer:
CONVERT_ADD(120;"in";"ft")
- vrne 10, število stopal v 120 palcih.
CONVERT_ADD(10;"yd";"cm")
- vrne 914,4, to je 10 jardov, izraženih v centimetrih.
Issues:
- Iz zgodovinskih razlogov številne enote ne uporabljajo standardiziranih mednarodnih okrajšav.
- Ta funkcija v splošnem ni združljiva z drugimi preglednicami.