11 - les nombres

menu | intro | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | a | b | c | index



les méthodes

arrondissement

n1 = Math.ceil( n2 )
n1 = Math.floor( n2 )
n1 = Math.round( n2 )


trigonométrie

n1 = Math.acos( n2 )
n1 = Math.asin( n2 )
n1 = Math.atan( n2 )
n1 = Math.atan2( n2, n3 )
n1 = Math.cos( n2 )
n1 = Math.sin( n2 )
n1 = Math.tan( n2 )


opérations diverses

n1 = Math.abs( n2 )
n1 = Math.log( n2 )
n1 = Math.exp( n2 )
n1 = Math.sqrt( n2 )
n1 = Math.pow( n2, n3 )


comparaisons

n1 = Math.max( n2, n3 )
n1 = Math.min( n2, n3 )


le hasard

n = Math.random()