Clear Up
SharpKit Reference

JsMath Class

Namespace: SharpKit.JavaScript

Base Types

System.Object

Methods

Name Description
abs(JsNumber) Returns the absolute value of a number.
acos(JsNumber) Returns the arccosine of a number.
asin(JsNumber) Returns the arcsine of a number.
atan(JsNumber) Returns the arctangent of a number.
atan2(JsNumber, JsNumber) Returns the angle (in radians) from the X axis to a point (y,x).
ceil(JsNumber) Returns the smallest integer greater than or equal to its numeric argument.
cos(JsNumber) Returns the cosine of a number.
exp(JsNumber) Returns e (the base of natural logarithms) raised to a power.
floor(JsNumber) Returns the greatest integer less than or equal to its numeric argument.
log(JsNumber) Returns the natural logarithm of a number.
max(JsNumber[]) Returns the greater of zero or more supplied numeric expressions.
min(JsNumber[]) Returns the lesser of zero or more supplied numeric expressions.
pow(JsNumber, JsNumber) Returns the value of a base expression taken to a specified power.
random() Returns a pseudorandom number between 0 and 1.
round(JsNumber) Returns a supplied numeric expression rounded to the nearest integer.
sin(JsNumber) Returns the sine of a number.
sqrt(JsNumber) Returns the square root of a number.
tan(JsNumber) Returns the tangent of a number.

Fields

Name Description
E Returns the mathematical constant e, the base of natural logarithms. The E property is approximately equal to 2.718.
LN10 Returns the natural logarithm of 10.
LN2 Returns the natural logarithm of 2.
LOG10E Returns the base-10 logarithm of e, Euler's number.
LOG2E Returns the base-2 logarithm of e, Euler's number.
PI Returns the ratio of the circumference of a circle to its diameter, approximately 3.141592653589793.
SQRT1_2 Returns the square root of 0.5, or one divided by the square root of 2.
SQRT2 Returns the square root of 2.
© Copyright 2005-2011 SharpKit. All rights reserved.