This documentation is archived and is not being maintained.
MathObject Class
Visual Studio 2010
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Provides constants and static methods for trigonometric functions, logarithmic functions, and other common mathematical functions. This class belongs to the built-in object model category.
System::Object
Microsoft.JScript::ScriptObject
Microsoft.JScript::JSObject
Microsoft.JScript::MathObject
Microsoft.JScript::LenientMathObject
Microsoft.JScript::ScriptObject
Microsoft.JScript::JSObject
Microsoft.JScript::MathObject
Microsoft.JScript::LenientMathObject
Assembly: Microsoft.JScript (in Microsoft.JScript.dll)
The MathObject type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Item[Double] | Gets or sets a member of the script object that is designated by the specified Double index value. (Inherited from ScriptObject.) |
![]() | Item[Int32] | Gets or sets a member of the script object that is designated by the specified Int32 index value. (Inherited from ScriptObject.) |
![]() | Item[array<Object>] | Gets or sets a member of the script object that is designated by the specified name, Double index value, or Int32 index value. (Inherited from ScriptObject.) |
![]() | Item[String] | Gets or sets a member of the script object that is designated by the specified name. (Inherited from ScriptObject.) |
![]() | UnderlyingSystemType | Gets the type of the script object. (Inherited from ScriptObject.) |
| Name | Description | |
|---|---|---|
![]() ![]() | abs | Calculates the absolute value of the specified number. |
![]() ![]() | acos | Calculates the inverse cosine of the specified number. |
![]() | AddField | Adds the specified field to the object. (Inherited from JSObject.) |
![]() ![]() | asin | Calculates the inverse sine of the specified number. |
![]() ![]() | atan | Calculates the inverse tangent of the specified number. |
![]() ![]() | atan2 | Calculates the inverse tangent of the quotient of the specified numbers. |
![]() ![]() | ceil | Calculates the ceiling of the specified number, which is the smallest integer that is greater than or equal to the specified number. |
![]() ![]() | cos | Calculates the cosine of the specified angle. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() ![]() | exp | Calculates the number e to the raised specified power, where e is Euler's constant, the base of the natural logarithm. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | floor | Calculates the floor of the specified number, which is the largest integer that is less than or equal to the specified number. |
![]() | GetField | Gets a field that has the specified name. (Inherited from ScriptObject.) |
![]() | GetFields | Gets an array of FieldInfo objects that correspond to all fields of the current script object. (Inherited from ScriptObject.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetMember | Gets an array of MemberInfo objects that correspond to all members that match the specified name. (Inherited from JSObject.) |
![]() | GetMembers | Gets an array of MemberInfo objects that correspond to all members of the current script object. (Inherited from JSObject.) |
![]() | GetMethod(String, BindingFlags) | Gets a method that has the specified name. (Inherited from ScriptObject.) |
![]() | GetMethod(String, BindingFlags, Binder, array<Type>, array<ParameterModifier>) | Gets a method that has the specified name by using the specified selection criteria. (Inherited from ScriptObject.) |
![]() | GetMethods | Gets an array of MethodInfo objects that correspond to all methods of the current script object. (Inherited from ScriptObject.) |
![]() | GetParent | Gets a reference to the parent object. (Inherited from ScriptObject.) |
![]() | GetProperties | Gets an array of PropertyInfo objects that correspond to all properties of the current script object. (Inherited from ScriptObject.) |
![]() | GetProperty(String, BindingFlags) | Gets a property that has the specified name. (Inherited from ScriptObject.) |
![]() | GetProperty(String, BindingFlags, Binder, Type, array<Type>, array<ParameterModifier>) | Gets a property that has the specified name by using the specified selection criteria. (Inherited from ScriptObject.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InvokeMember | Invokes the specified member. (Inherited from ScriptObject.) |
![]() ![]() | log | Calculates the logarithm base e of the specified number, which is the natural logarithm of the specified number. |
![]() ![]() | max | Returns the largest of two or more specified numbers. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | min | Returns the smallest of two or more specified numbers. |
![]() ![]() | pow | Calculates the specified number raised to the specified power. |
![]() ![]() | random | Generates a random number between 0 and 1. This method does not generate a cryptographically secure random number. |
![]() ![]() | round | Rounds the specified number down or up to the nearest integer. |
![]() | SetMemberValue2 | Sets the value of a field that was dynamically added to the object and stored in field_table. (Inherited from JSObject.) |
![]() ![]() | sin | Calculates the sine of the specified angle. |
![]() ![]() | sqrt | Calculates the square root of the specified number. |
![]() ![]() | tan | Calculates the tangent of the specified angle. |
![]() | ToString | Returns a string that represents the current object. (Inherited from JSObject.) |
| Name | Description | |
|---|---|---|
![]() ![]() | E | Stores a value that represents Euler's constant, which is the base of the natural logarithm, specified by the constant e. |
![]() | engine | Stores a reference to the scripting engine. (Inherited from ScriptObject.) |
![]() | field_table | Stores a list of fields that are dynamically added and removed from the object. (Inherited from JSObject.) |
![]() ![]() | LN10 | Stores a value that represents the logarithm base e of 10, the natural logarithm of 10. |
![]() ![]() | LN2 | Stores a value that represents the logarithm base e of 2, the natural logarithm of 2. |
![]() ![]() | LOG10E | Stores a value that represents the logarithm base 10 of e, the common logarithm of e. |
![]() ![]() | LOG2E | Stores a value that represents the logarithm base 2 of e, the binary logarithm of e. |
![]() | parent | Stores a reference to the parent object. (Inherited from ScriptObject.) |
![]() ![]() | PI | Stores a value that represents the ratio of the circumference of a circle to its diameter, specified by the constant π. |
![]() ![]() | SQRT1_2 | Stores a value that represents the following equivalent values: (√2)/2, √(½), and 1/(√2). |
![]() ![]() | SQRT2 | Stores a value that represents √2. |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable::GetEnumerator | Returns an enumerator that iterates through the members of the object. (Inherited from JSObject.) |
![]() ![]() | IExpando::AddMethod | Adds the specified method to the object. IExpando::AddMethod is not implemented in JScript. (Inherited from JSObject.) |
![]() ![]() | IExpando::AddProperty | Adds the specified property to the object. This method is not implemented in JScript. (Inherited from JSObject.) |
![]() ![]() | IExpando::RemoveMember | Removes the specified member from the object. (Inherited from JSObject.) |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
