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...»)
 
Línea 95: Línea 95:


===En otros idiomas===
===En otros idiomas===
[https://docs.moodle.org/33/en/Formulas:_Introduction English]<br>
[https://docs.moodle.org/33/en/Formulas:_Operators English]<br>
[https://docs.moodle.org/3x/fr/Formules:_Introduction Français]
[https://docs.moodle.org/3x/fr/Formules:_Op%C3%A9rateurs Français]

Revisión del 04:51 8 ene 2018


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 w3schools/jsref/jsref_operators.

Operator Definition
Arithmetic Operators
+ addition
- subtraction
* multiplication
/ division
% modulus (division remainder)
Assignment Operators
= assigns a value to a variable
Comparison Operators
== equal to
!= not equal
> greater than
< less than
>= greater than or equal to
<= less than or equal to
Conditional (Ternary) Operator
? : conditional operator
Logical Operators
&& and
| or
! not
Bitwise Operators
& AND
| OR
~ NOT
^ XOR
(Note that ^ means "power" in algebraic formulas)
<< left shift
>> right shift


Ir a inicio de página

← TIPO DE PREGUNTA FÓRMULAS

En otros idiomas

English
Français