caucho
Resin 1.1
FAQ
Reference
JavaDoc
Demo
Java Tutorial

Getting Started
Configuration
Servlet
JSP
XTP/XSL
JavaScript
JS Library

Core Library
File Library
Servlet Library
Database Library
XML Library

Global
Object
Array
Boolean
Date
Function
Math
Number
Regexp
String
 The Math Object

Math Constructor
E The natural logarithm base, 2.718281828459045
LN10 The natural logarithm of 10.
LN2 The natural logarithm of 2.
LOG2E The base-2 logarithm of E.
LOG10E The base-10 logarithm of E.
PI Pi, 3.141592653589793
SQRT1_2 The square root of 0.5.
SQRT2 The square root of 2.
abs(x) The absolute value of x.
asin(x) The arc-sine of x.
acos(x) The arc-cosine of theta.
atan(x) The arc-tangent of x.
atan2(x, y) The arc-tangent of the point (x, y).
ceil(x) The smallest integer greater than x
cos(theta) The cosine of theta.
exp(x) e to the power of x.
floor(x) The largest integer less than x
log(x) The natural logarithm of x.
max(x1, ..., xn) The largest value of x1 through xn.
min(x1, ..., xn) The smallest value of x1 through xn.
pow(x, y) x to the power of y.
random([n]) Returns a random number from 0.0 to 1.0. If n is given, returns a random integer from 0 to n, non-inclusive.
round(x) The nearest integer to x.
setRandomSeed(seed) Sets the random number seed to seed.
sin(theta) The sine of theta.
sqrt(x) The square root of x.
tan(theta) The tangent of theta.

Math Constructor

E

The natural logarithm base, 2.718281828459045

LN10

The natural logarithm of 10.

LN2

The natural logarithm of 2.

LOG2E

The base-2 logarithm of E.

LOG10E

The base-10 logarithm of E.

PI

Pi, 3.141592653589793

SQRT1_2

The square root of 0.5.

SQRT2

The square root of 2.

abs(x)

The absolute value of x.

asin(x)

The arc-sine of x.

acos(x)

The arc-cosine of theta.

atan(x)

The arc-tangent of x.

atan2(x, y)

The arc-tangent of the point (x, y).

ceil(x)

The smallest integer greater than x

cos(theta)

The cosine of theta.

exp(x)

e to the power of x.

floor(x)

The largest integer less than x

log(x)

The natural logarithm of x.

max(x1, ..., xn)

The largest value of x1 through xn.

min(x1, ..., xn)

The smallest value of x1 through xn.

pow(x, y)

x to the power of y.

random([n])

Returns a random number from 0.0 to 1.0. If n is given, returns a random integer from 0 to n, non-inclusive.

round(x)

The nearest integer to x.

setRandomSeed(seed)

Sets the random number seed to seed.

sin(theta)

The sine of theta.

sqrt(x)

The square root of x.

tan(theta)

The tangent of theta.

Function   Number
Copyright © 1998-2000 Caucho Technology. All rights reserved.
Last modified: Thu, 16 Sep 1999 14:56:48 -0700 (PDT)