diff --git a/Language/Structure/Arithmetic Operators/multiplication.adoc b/Language/Structure/Arithmetic Operators/multiplication.adoc index 7821acf..2693660 100644 --- a/Language/Structure/Arithmetic Operators/multiplication.adoc +++ b/Language/Structure/Arithmetic Operators/multiplication.adoc @@ -1,15 +1,15 @@ --- title: "*" -title_expanded: "multiplication" +title_expanded: "Multiplicacion" categories: [ "Structure" ] -subCategories: [ "Arithmetic Operators" ] +subCategories: [ "Operadores Aritméticos" ] --- -= * Multiplication += * Multiplicación // OVERVIEW SECTION STARTS @@ -17,23 +17,23 @@ subCategories: [ "Arithmetic Operators" ] -- [float] -=== Description -*Multiplication* is one of the four primary arithmetic operations. The operator `*` (asterisk) operates on two operands to produce the product. +=== Descripción +La *multiplicación* es una de las cuatro operaciones aritméticas básicas. El operador `*` (asterisco) opera con dos operandos para producir the producto. [%hardbreaks] [float] -=== Syntax +=== Sintaxis [source,arduino] ---- -product = operand1 * operand2; +producto = operando1 * operando2; ---- [float] -=== Parameters -`product` : variable. *Allowed data types:* int, float, double, byte, short, long + -`operand1` : variable or constant. *Allowed data types:* int, float, double, byte, short, long + -`operand2` : variable or constant. *Allowed data types:* int, float, double, byte, short, long +=== Parámetros +`producto` : variable. *Tipos de dato permitidos:* int, float, double, byte, short, long + +`operando1` : variable o constante. *Tipos de dato permitidos:* int, float, double, byte, short, long + +`operando2` : variable o constante. *Tipos de dato permitidos:* int, float, double, byte, short, long [%hardbreaks] -- @@ -47,28 +47,28 @@ product = operand1 * operand2; -- [float] -=== Example Code +=== Ejemplo [source,arduino] ---- int a = 5, b = 10, c = 0; -c = a * b; // the variable 'c' gets a value of 50 after this statement is executed +c = a * b; // la variable 'c' recibe el valor de 50 tras ejecutarse esta sentencia ---- [%hardbreaks] [float] -=== Notes and Warnings -1. The multiplication operation can overflow if the result is bigger than that which can be stored in the data type. +=== Notas y precauciones +1. La multiplicación puede desbordar si el resultado es mayor a lo que el tipo de dato puede almacenar. -2. If one of the numbers (operands) are of the type float or of type double, floating point math will be used for the calculation. +2. Si uno de los números (operandos) es de tipo float o tipo double, se usar matemática de punto flotante para el cálculo. -3. If the operands are of float / double data type and the variable that stores the product is an integer, then only the integral part is stored and the fractional part of the number is lost. +3. Si uno de los operandos es de tipo float / double y la variable que recibe el producto es un integer, entonces solo pa parte entera es guardada y la parte fraccionaria se pierde. [source,arduino] ---- float a = 5.5, b = 6.6; int c = 0; -c = a * b; // the variable 'c' stores a value of 36 only as opposed to the expected product of 36.3 +c = a * b; //la variable'c' recibe el valor de 36 unicamente, en contraste al product esperado de 36.3 ---- [%hardbreaks] @@ -76,16 +76,3 @@ c = a * b; // the variable 'c' stores a value of 36 only as opposed to the expec // HOW TO USE SECTION ENDS - - -// SEE ALSO SECTION STARTS -[#see_also] --- - -[float] -=== See also - -[role="language"] - --- -// SEE ALSO SECTION ENDS