giovedì 18 febbraio 2021

Modulo Javascript

Modulo Javascript. What does % do in javascript? Das vorzeichen ergibt sich aus der wahl der quotienten.

JavaScript Modulo | How Does Modulo Done in Javascript?
JavaScript Modulo | How Does Modulo Done in Javascript? from cdn.educba.com
In mathematics, the result of a modulo operation is the remainder of an arithmetic division. Modulo operator helps us to find the remainder of the two numbers. The modulo operator is represented by the % character in javascript.

You may have read that javascript's % operator is a remainder operator, not a modulo operator.

However, a true modulus operator would always return a positive value, so 21 modulo 5 would equal 4. This blog post explains what that means. Modulo operator helps us to find the remainder of the two numbers. The javascript modulo operator, represented by a percentage sign, returns the remainder of a division sum.


Nessun commento:

Posta un commento

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel