Click or drag to resize

MathR Class

Provides static methods for common mathematical functions.
Inheritance Hierarchy
SystemObject
  SystemMathR

Namespace:  System
Assembly:  Cauldron.Activator (in Cauldron.Activator.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static class MathR

The MathR type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAdd
Adds a to b

If a and b are null then null is returned. If a is null then b is returned. If b is null then a is returned.

Tries to cast primitiv Type and use the + operator. If the Type is unknown then reflection is used to determin the operator.

Public methodStatic memberDivide
Divides a with b

If a and b are null then null is returned. If a is null then 0 is returned. If b is null then a is returned;

Tries to cast primitiv Type and use the / operator. If the Type is unknown then reflection is used to determin the operator.

Public methodStatic memberMultiply
Multiplies a with b

If a and b are null then null is returned. If a is null then b is returned. If b is null then a is returned.

Tries to cast primitiv Type and use the * operator. If the Type is unknown then reflection is used to determin the operator.

Public methodStatic memberSubstract
Substracts b from a

If a and b are null then null is returned. If a is null then 0 is returned. If b is null then a is returned;

Tries to cast primitiv Type and use the - operator. If the Type is unknown then reflection is used to determin the operator.

Top
See Also