Fluxograma
The Math Object
Conteúdo do fluxograma
JavaScript Math Object
The Math Object
The Math object is a native object that is being provided to us by JavaScript in order to perform mathematical operations and computations easier by using these functions.
The Math object works with data types of number. Some of the commonest functions used are:
Math.random() // creates a random decimal number between 0 and 1. In case you want to increase the range, you need to multiply the random number with the upper limit you want to set. Math,random() * 10 (from 0 to 10)
Math.round(x) // Rounds the decimal number x to the nearest integer
Math.ceil(x) // Rounds the decimal x to the nearest upper integer
Math.floor(x) // rounds the decimal to X to the bottom nearest integer
And many many more, Please find the documentation and the list of the Math possible functions here
/
Informações
- Descrição
- Junior Certificate Web Developing Fluxograma sobre The Math Object, criado por Kostas Diakogiannis em 15-10-2018.
- Criado por
- Kostas Diakogiannis
- Visualizações
- 7
- Histórico
-
- Criado por Kostas Diakogiannis · 12 out 2018
- Copiado por Kostas Diakogiannis · 12 out 2018
- Copiado por Kostas Diakogiannis · 12 out 2018
- Copiado por Kostas Diakogiannis · 15 out 2018
- Copiado por Kostas Diakogiannis · 15 out 2018
- Copiado por Kostas Diakogiannis · 15 out 2018
- Avaliação