Diferencia entre revisiones de «Fórmulas: Operadores»

De MoodleDocs
(Página creada con «{{Tipo_de_pregunta_Fórmulas}} ==Operadores== Numerical operators available in the Formulas question type are listed in the table below. They are equivalent to those corr...»)
 
(Página redirigida a Tipo de pregunta fórmulas)
 
(No se muestran 2 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
{{Tipo_de_pregunta_Fórmulas}}
#REDIRECT [[Tipo_de_pregunta_f%C3%B3rmulas]]
 
==Operadores==
 
Numerical operators available in the Formulas question type are listed in the table below. They are equivalent to those corresponding in JavaScript. For more details on these operators, see for example [http://www.w3schools.com/jsref/jsref_operators.asp w3schools/jsref/jsref_operators].
 
{| class="nicetable"
|-
! Operator
! Definition
|-
| colspan="2" | ''Arithmetic Operators''
|-
| +
| addition
|-
| -
| subtraction
|-
| *
| multiplication
|-
| /
| division
|-
| %
| modulus (division remainder)
|-
| colspan="2" | ''Assignment Operators''
|-
| =
| assigns a value to a variable
|-
| colspan="2" | ''Comparison Operators''
|-
| ==
| equal to
|-
| !=
| not equal
|-
| >
| greater than
|-
| <
| less than
|-
| >=
| greater than or equal to
|-
| <=
| less than or equal to
|-
| colspan="2" | ''Conditional (Ternary) Operator''
|-
| ? :
| conditional operator
|-
| colspan="2" | ''Logical Operators''
|-
| &&
| and
|-
| | |
| or
|-
| !
| not
|-
| colspan="2" | ''Bitwise Operators''
|-
| &
| AND
|-
| &#124;
| OR
|-
| ~
| NOT
|-
| ^
| XOR<br>(Note that ^ means "power" in algebraic formulas)
|-
| <<
| left shift
|-
| >>
| right shift
|}
 
 
[[#top|Ir a inicio de página]]
 
[[Tipo de pregunta Fórmulas|← TIPO DE PREGUNTA FÓRMULAS]]
 
===En otros idiomas===
[https://docs.moodle.org/33/en/Formulas:_Introduction English]<br>
[https://docs.moodle.org/3x/fr/Formules:_Introduction Français]

Revisión actual - 01:32 1 feb 2018