Difference between revisions of "ES/Documentation/How Tos/Calc: CONVERT ADD function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(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: ===…')
 
m
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{DISPLAYTITLE:Calc: La función CONVERTIR_ADD}}
 +
[[Category:OldES]]
 
__NOTOC__
 
__NOTOC__
  
== CONVERT_ADD ==
+
== CONVERTIR_ADD ==
Converts a number from one measurement system to another.
+
Convierte un número desde un sistema de medida a otro.
  
This function is only available if the '''Analysis AddIn''' is installed.
+
La función solo está disponible si se instala el '''Agregado de Análisis'''.
  
=== Syntax: ===
+
=== Sintaxis: ===
<tt>'''CONVERT_ADD(number; originalunits; newunits)'''</tt>
+
<tt>'''CONVERTIR_ADD(número; unidad_original; nueva_unidad)'''</tt>
: <tt>'''number'''</tt> is the number to be converted.
+
: <tt>'''número'''</tt> es el número que se convertirá.
  
: <tt>'''originalunits'''</tt> and <tt>'''newunits'''</tt> are text representing the original and new measurement systems. 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.
+
: <tt>'''unidad_original'''</tt> y <tt>'''nueva_unidad'''</tt> son textos que representan al sistema de medida original y al nuevo. Deben ser seleccionados entre los que se listan en la siguiente tabla, respetando el uso de mayúsculas y minúsculas. Las unidades en '''negrita''' admiten un prefijo opcional como multiplicador decimal de la tabla que está después de ésta.
  
 
{| border="1" cellpadding="5" cellspacing="0" style="margin: 1em auto 1em auto"
 
{| border="1" cellpadding="5" cellspacing="0" style="margin: 1em auto 1em auto"
 
|-
 
|-
|'''property'''||'''units'''
+
|'''propiedad'''||'''unidades'''
 
|-
 
|-
|Weight||'''g''', sg, lbm, '''u''', ozm, stone, ton, grain, pweight, hweight, shweight, brton
+
|masa||'''g''', sg, lbm, '''u''', ozm, stone, ton, grain, pweight, hweight, shweight, brton
 
|-
 
|-
|length||'''m''', mi, Nmi, in, ft, yd, ang, Pica, ell, '''parsec''', '''lightyear''', survey_mi
+
|longitud||'''m''', mi, Nmi, in, ft, yd, ang, Pica, ell, '''parsec''', '''lightyear''', survey_mi
 
|-
 
|-
|time||yr, day, hr, mn, '''sec''', '''s'''
+
|tiempo||yr, day, hr, mn, '''sec''', '''s'''
 
|-
 
|-
|pressure||'''Pa''', '''atm''', '''at''', '''mmHg''', Torr, psi
+
|presión||'''Pa''', '''atm''', '''at''', '''mmHg''', Torr, psi
 
|-
 
|-
|force||'''N''', '''dyn''', '''dy''', lbf, '''pond'''
+
|fuerza||'''N''', '''dyn''', '''dy''', lbf, '''pond'''
 
|-
 
|-
|energy||'''J''', '''e''', '''c''', '''cal''', '''eV''', '''ev''', HPh, '''Wh''', '''wh''', flb, BTU, btu
+
|energía||'''J''', '''e''', '''c''', '''cal''', '''eV''', '''ev''', HPh, '''Wh''', '''wh''', flb, BTU, btu
 
|-
 
|-
|power||'''W''', '''w''', HP, PS
+
|potencia||'''W''', '''w''', HP, PS
 
|-
 
|-
|field strength||'''T''', '''ga'''
+
|campo electromagnético||'''T''', '''ga'''
 
|-
 
|-
|temperature||C, F, '''K''', '''kel''', Reau, Rank
+
|temperatura||C, F, '''K''', '''kel''', Reau, Rank
 
|-
 
|-
|volume||'''l''', '''L''', '''lt''', tsp, tbs, oz, cup, pt, us_pt, qt, gal, '''m3''', mi3, Nmi3, in3, ft3, yd3, ang3, Pica3,  
+
|volumen||'''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
 
|-
 
|-
|area||'''m2''', mi2, Nmi2, in2, ft2, yd2, '''ang2''', Pica2, Morgen, '''ar''', acre, ha
+
|área||'''m2''', mi2, Nmi2, in2, ft2, yd2, '''ang2''', Pica2, Morgen, '''ar''', acre, ha
 
|-
 
|-
|speed||'''m/s''', '''m/sec''', m/h, mph, kn, admkn
+
|velocidad||'''m/s''', '''m/sec''', m/h, mph, kn, admkn
 
|-
 
|-
|information||'''bit''', '''byte'''
+
|información||'''bit''', '''byte'''
 
|}
 
|}
  
: The above units may be preceded by a decimal multiplier. For example <tt>'''k'''</tt> (<i>kilo</i>) is the prefix for 10<sup>3</sup> - so <tt>'''km'''</tt> means <i>kilometres</i>. 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 <tt>'''km2'''</tt> means <i>square kilometres</i>, that is <i>10<sup>6</sup> square metres</i>. The following table lists the prefixes:
+
: Las unidades anteriores pueden estar precedidas por un multiplicador decimal. Por ejemplo, <tt>'''k'''</tt> (<i>kilo</i>) es el prefijo para 10<sup>3</sup> - por lo cual <tt>'''km'''</tt> significa <i>kilómetros</i>. Si la unidad es una medida de área el multiplicador se eleva al cuadrado, y si es una medida de volumen, se eleva al cubo. Por ejemplo, <tt>'''km2'''</tt> significa <i>kilómetros cuadrados</i>, que es <i>10<sup>6</sup> metros cuadrados</i>. La siguiente tabla lista los prefijos:
  
 
{| border="1" cellpadding="5" cellspacing="0" style="margin: 1em auto 1em auto"
 
{| border="1" cellpadding="5" cellspacing="0" style="margin: 1em auto 1em auto"
 
|-
 
|-
|'''prefix < 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>)
+
|'''prefijos < 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>)
 
|-
 
|-
|'''prefix > 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>)
+
|'''prefijos > 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>)
 
|}
 
|}
  
=== Example: ===
+
=== Ejemplos: ===
<tt>'''CONVERT_ADD(120;"in";"ft")'''</tt>
+
<tt>'''CONVERTIR_ADD(120;"in";"ft")'''</tt>
: returns <tt>'''10'''</tt>, the number of feet in 120 inches.
+
: devuelve <tt>'''10'''</tt>, la cantidad de pies en 120 pulgadas.
  
<tt>'''CONVERT_ADD(10;"yd";"cm")'''</tt>
+
<tt>'''CONVERTIR_ADD(10;"yd";"cm")'''</tt>
: returns <tt>'''914.4'''</tt>, that is 10 yards expressed in centimetres.
+
: devuelve <tt>'''914.4'''</tt>, que son 10 yardas expresadas en centímetros.
  
=== Issues: ===
+
=== Problemas: ===
* For historical reasons, many of the units do not use international standard abbreviations.
+
* Por razones históricas, muchas de las unidades no usan las abreviaturas estándares internacionales.
* This function is not generally compatible with other spreadsheets.
+
* Esta función, por lo general, no es compatible con otras hojas de cálculo.
 
+
 
+
{{Documentation/SeeAlso|
+
* [[Documentation/How_Tos/Calc: CONVERT function|CONVERT]]
+
 
+
* [[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]]
+
 
+
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
+
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
+
[[Category: Documentation/Reference/Calc/Mathematical functions]]
+

Latest revision as of 21:45, 4 October 2012


CONVERTIR_ADD

Convierte un número desde un sistema de medida a otro.

La función solo está disponible si se instala el Agregado de Análisis.

Sintaxis:

CONVERTIR_ADD(número; unidad_original; nueva_unidad)

número es el número que se convertirá.
unidad_original y nueva_unidad son textos que representan al sistema de medida original y al nuevo. Deben ser seleccionados entre los que se listan en la siguiente tabla, respetando el uso de mayúsculas y minúsculas. Las unidades en negrita admiten un prefijo opcional como multiplicador decimal de la tabla que está después de ésta.
propiedad unidades
masa g, sg, lbm, u, ozm, stone, ton, grain, pweight, hweight, shweight, brton
longitud m, mi, Nmi, in, ft, yd, ang, Pica, ell, parsec, lightyear, survey_mi
tiempo yr, day, hr, mn, sec, s
presión Pa, atm, at, mmHg, Torr, psi
fuerza N, dyn, dy, lbf, pond
energía J, e, c, cal, eV, ev, HPh, Wh, wh, flb, BTU, btu
potencia W, w, HP, PS
campo electromagnético T, ga
temperatura C, F, K, kel, Reau, Rank
volumen 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

área m2, mi2, Nmi2, in2, ft2, yd2, ang2, Pica2, Morgen, ar, acre, ha
velocidad m/s, m/sec, m/h, mph, kn, admkn
información bit, byte
Las unidades anteriores pueden estar precedidas por un multiplicador decimal. Por ejemplo, k (kilo) es el prefijo para 103 - por lo cual km significa kilómetros. Si la unidad es una medida de área el multiplicador se eleva al cuadrado, y si es una medida de volumen, se eleva al cubo. Por ejemplo, km2 significa kilómetros cuadrados, que es 106 metros cuadrados. La siguiente tabla lista los prefijos:
prefijos < 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)
prefijos > 1 e (101), h (102), k (103), M 106), G (109), T (1012), P (1015), E (1018), Z (1021), Y (1024)

Ejemplos:

CONVERTIR_ADD(120;"in";"ft")

devuelve 10, la cantidad de pies en 120 pulgadas.

CONVERTIR_ADD(10;"yd";"cm")

devuelve 914.4, que son 10 yardas expresadas en centímetros.

Problemas:

  • Por razones históricas, muchas de las unidades no usan las abreviaturas estándares internacionales.
  • Esta función, por lo general, no es compatible con otras hojas de cálculo.
Personal tools