|
static implicit | operator Real (float value) |
|
static implicit | operator Real (double value) |
|
static Real | CreateFromRaw (long StartingRawValue) |
|
static Real | CreateDecimal (long beforeDecimal, int afterDecimal, int afterDigits) |
| Creates a real value with that is 0.number. For example, CreateDecimal(123) will create a real value that is equal to "0.123". More...
|
|
static Real | CreateDecimal (long beforeDecimal) |
|
static Real | Create (long StartingRawValue, bool UseMultiple) |
|
static Real | Create (double DoubleValue) |
|
static Real | FromParts (int PreDecimal, int PostDecimal) |
| Create a fixed-int number from parts. For example, to create 1.5 pass in 1 and 500. More...
|
|
static Real | operator* (Real one, Real other) |
|
static Real | operator* (Real one, int multi) |
|
static Real | operator* (int multi, Real one) |
|
static Real | operator/ (Real one, Real other) |
|
static Real | operator/ (Real one, int divisor) |
|
static Real | operator/ (int divisor, Real one) |
|
static Real | operator% (Real one, Real other) |
|
static Real | operator% (Real one, int divisor) |
|
static Real | operator% (int divisor, Real one) |
|
static Real | operator+ (Real one, Real other) |
|
static Real | operator+ (Real one, int other) |
|
static Real | operator+ (int other, Real one) |
|
static Real | operator- (Real a) |
|
static Real | operator- (Real one, Real other) |
|
static Real | operator- (Real one, int other) |
|
static Real | operator- (int other, Real one) |
|
static bool | operator== (Real one, Real other) |
|
static bool | operator== (Real one, int other) |
|
static bool | operator== (int other, Real one) |
|
static bool | operator!= (Real one, Real other) |
|
static bool | operator!= (Real one, int other) |
|
static bool | operator!= (int other, Real one) |
|
static bool | operator>= (Real one, Real other) |
|
static bool | operator>= (Real one, int other) |
|
static bool | operator>= (int other, Real one) |
|
static bool | operator<= (Real one, Real other) |
|
static bool | operator<= (Real one, int other) |
|
static bool | operator<= (int other, Real one) |
|
static bool | operator> (Real one, Real other) |
|
static bool | operator> (Real one, int other) |
|
static bool | operator> (int other, Real one) |
|
static bool | operator< (Real one, Real other) |
|
static bool | operator< (Real one, int other) |
|
static bool | operator< (int other, Real one) |
|
static | operator int (Real src) |
|
static | operator float (Real src) |
|
static | operator double (Real src) |
|
static | operator Real (int src) |
|
static | operator Real (long src) |
|
static | operator Real (ulong src) |
|
static Real | operator<< (Real one, int Amount) |
|
static Real | operator>> (Real one, int Amount) |
|
static Real | Sqrt (Real f, int NumberOfIterations) |
|
static Real | Sqrt (Real f) |
|
static Real | Sin (Real i) |
|
static Real | Cos (Real i) |
|
static Real | Tan (Real i) |
|
static Real | Asin (Real F) |
|
static Real | Atan (Real F) |
|
static Real | Atan2 (Real F1, Real F2) |
|
static Real | Abs (Real F) |
|
static Real | Floor (Real F) |
|
static Real | Ceiling (Real F) |
|
static Real | Min (Real one, Real other) |
|
static Real | Max (Real one, Real other) |
|
A Real value implements floating point operations on the CPU. It does not adhere any any IEEE standard, but has the extremely important attribute of providing identical semantics on every CPU which executes it. This is otherwise impossible to guarantee in the CLR, especially when 3rd party code is running and/or C++ DLL access is unavailable to set x87 FPU rounding modes.
This class has been adapted from http://stackoverflow.com/a/616015.