Java:Math
De W3API
Contenido |
[editar] Descripción
La clase Math contiene un conjunto de métodos para realizar operaciones matemáticas básicas.
[editar] Sintaxis
public final class Math extends Object
[editar] Ejemplo
System.out.println(Math.PI); System.out.println(Math.pow(2,3));
[editar] Campos
[editar] Constructores
[editar] Métodos
- abs()
- acos()
- asin()
- atan()
- atan2()
- cbrt()
- ceil()
- cos()
- cosh()
- exp()
- expm1()
- floor()
- hypot()
- IEEEremainder()
- log()
- log10()
- log1p()
- max()
- min()
- pow()
- random()
- rint()
- round()
- signum()
- sin()
- sinh()
- sqrt()
- tan()
- tanh()
- toDegrees()
- toRadians()
- ulp()