A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Operators/Division below:

Divisão (/) - JavaScript | MDN

Divisão (/)

Baseline Widely available

O operador de divisão (/) produz o quociente de seus operandos onde o operando esquerdo é o dividendo e o operando direito é o divisor.

Experimente
console.log(12 / 2);
// Expected output: 6

console.log(3 / 2);
// Expected output: 1.5

console.log(6 / "3");
// Expected output: 2

console.log(2 / 0);
// Expected output: Infinity
Sintaxe Exemplos Divisão básica
1 / 2; // 0.5

Math.floor(3 / 2); // 1

1.0 / 2.0; // 0.5
Divisão por zero
2.0 / 0; // Infinito

2.0 / 0.0; // Infinito, porque 0.0 === 0

2.0 / -0.0; // -Infinito
Especificações Compatibilidade de navegadores Veja também

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4