![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
The number data type is a double-precision floating-point number. You can manipulate numbers using the arithmetic operators addition (+
), subtraction (-
), multiplication (*
), division (/
), modulo (%
), increment (++
), and decrement (--
). You can also use methods of the built-in Math and Number classes to manipulate numbers. The following example uses the sqrt()
(square root) method to return the square root of the number 100:
Math.sqrt(100);
For more information, see Numeric operators.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |