Modèl:Div/Documentacion
Aparença
- Sintaxi
{{Div|1=dividende|2=modulus}}
- Exemples amb un modulus entièr e positiu
-
{{Div|12|10}}
= "1".{{Div|10.1|10}}
= "1".{{Div|10|10}}
= "1".{{Div|2|10}}
= "0".{{Div|0|10}}
= "0".{{Div|-2|10}}
= "-1".{{Div|-10|10}}
= "-1".{{Div|-10.1|10}}
= "-2".{{Div|-12|10}}
= "-2".
- Exemples amb un modulus entièr e negatif
-
{{Div|12|-10}}
= "-2".{{Div|10.1|-10}}
= "1".{{Div|10|-10}}
= "-1".{{Div|2|-10}}
= "-1".{{Div|0|-10}}
= "-0".{{Div|-2|-10}}
= "0".{{Div|-10|-10}}
= "1".{{Div|-10.1|-10}}
= "1".{{Div|-12|-10}}
= "1".
- Exemples amb un modulus non entièr e positiu
-
{{Div|21.5|10.5}}
= "2".{{Div|21.1|10.5}}
= "2".{{Div|21|10.5}}
= "2".{{Div|20.9|10.5}}
= "1".{{Div|11|10.5}}
= "1".{{Div|10.6|10.5}}
= "1".{{Div|10.5|10.5}}
= "1".{{Div|10.1|10.5}}
= "0".{{Div|10|10.5}}
= "0".{{Div|2|10.5}}
= "0".{{Div|0|10.5}}
= "0".{{Div|-2|10.5}}
= "-1".{{Div|-10|10.5}}
= "-1".{{Div|-10.1|10.5}}
= "-1".{{Div|-10.5|10.5}}
= "-1".{{Div|-10.6|10.5}}
= "-2".{{Div|-11|10.5}}
= "-2".{{Div|-20.9|10.5}}
= "-2".{{Div|-21|10.5}}
= "-2".{{Div|-21.1|10.5}}
= "-3".{{Div|-21.5|10.5}}
= "-3".
- Exemples amb un modulus nul
-
{{Div|2|0}}
= "0".{{Div|0|0}}
= "0".{{Div|-2|0}}
= "0".
- Vejatz tanben