You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Modulo* operation calculates the remainder when one integer is divided by another. It is useful for keeping a variable within a particular range (e.g. the size of an array). The `%` (percent) symbol is used to carry out modulo operation.
20
+
=== Descripción
21
+
La operación de *Módulo* calcula el residuo que resulta de dividir un entero entre otro. Sirve para mantener una variable dentro de un rango en particular (e.g. el tamaño de un arreglo). El símbolo `%` (porcentaje) se usa para ejecutar la operación de módulo.
22
22
[%hardbreaks]
23
23
24
24
25
25
[float]
26
-
=== Syntax
26
+
=== Sintaxis
27
27
[source,arduino]
28
28
----
29
29
remainder = dividend % divisor;
30
30
----
31
31
32
32
[float]
33
-
=== Parameters
34
-
`remainder` : variable. *Allowed data types:* int, float, double +
35
-
`dividend` : variable or constant. *Allowed data types:* int +
36
-
`divisor` : *non zero* variable or constant. *Allowed data types:* int
33
+
=== Parámetros
34
+
`residuo` : variable. *Tipos de datos permitidos:* int, float, double +
35
+
`dividendo` : variable o constante. *Tipos de datos permitidos:* int +
36
+
`divisor` : variable o constante *distinta a cero*. *Tipos de datos permitidos:* int
0 commit comments