| Modifier and Type | Field and Description |
|---|---|
static ERational |
ERational.NaN
A not-a-number value.
|
static ERational |
ERational.NegativeInfinity
Negative infinity, less than any other number.
|
static ERational |
ERational.NegativeZero
A rational number for negative zero.
|
static ERational |
ERational.One
The rational number one.
|
static ERational |
ERational.PositiveInfinity
Positive infinity, greater than any other number.
|
static ERational |
ERational.SignalingNaN
A signaling not-a-number value.
|
static ERational |
ERational.Ten
The rational number ten.
|
static ERational |
ERational.Zero
A rational number for zero.
|
| Modifier and Type | Method and Description |
|---|---|
ERational |
ERational.Abs()
Not documented yet.
|
ERational |
ERational.Add(ERational otherValue)
Adds two rational numbers.
|
ERational |
ERational.CopySign(ERational other)
Returns a number with the same value as this one, but copying the sign
(positive or negative) of another number.
|
static ERational |
ERational.Create(EInteger numerator,
EInteger denominator)
Creates a rational number with the given numerator and denominator.
|
static ERational |
ERational.Create(int numeratorSmall,
int denominatorSmall)
Creates a rational number with the given numerator and denominator.
|
static ERational |
ERational.CreateNaN(EInteger diag)
Creates a not-a-number arbitrary-precision rational number.
|
static ERational |
ERational.CreateNaN(EInteger diag,
boolean signaling,
boolean negative)
Creates a not-a-number arbitrary-precision rational number.
|
ERational |
ERational.Divide(ERational otherValue)
Divides this instance by the value of an arbitrary-precision rational number
object.
|
static ERational |
ERational.FromByte(byte inputByte)
Converts a byte (from 0 to 255) to an arbitrary-precision rational number.
|
static ERational |
ERational.FromDouble(double flt)
Converts a 64-bit floating-point number to a rational number.
|
static ERational |
ERational.FromEDecimal(EDecimal ef)
Converts an arbitrary-precision decimal number to a rational number.
|
static ERational |
ERational.FromEFloat(EFloat ef)
Not documented yet.
|
static ERational |
ERational.FromEInteger(EInteger bigint)
Converts an arbitrary-precision integer to a rational number.
|
static ERational |
ERational.FromExtendedDecimal(EDecimal ef)
Deprecated.
Renamed to FromEDecimal.
|
static ERational |
ERational.FromExtendedFloat(EFloat ef)
Deprecated.
Renamed to FromEFloat.
|
static ERational |
ERational.FromInt16(short inputInt16)
Converts a 16-bit signed integer to an arbitrary-precision rational number.
|
static ERational |
ERational.FromInt32(int inputInt32)
Converts a 32-bit signed integer to an arbitrary-precision rational number.
|
static ERational |
ERational.FromInt64(long inputInt64)
Converts a 64-bit signed integer to an arbitrary-precision rational number.
|
static ERational |
ERational.FromSingle(float flt)
Converts a 32-bit floating-point number to a rational number.
|
static ERational |
ERational.FromString(String str)
Creates a rational number from a text string that represents a number.
|
static ERational |
ERational.FromString(String str,
int offset,
int length)
Creates a rational number from a text string that represents a
number.
|
ERational |
ERational.Multiply(ERational otherValue)
Multiplies this instance by the value of an arbitrary-precision rational
number.
|
ERational |
ERational.Negate()
Returns a rational number with the sign reversed.
|
ERational |
ERational.Remainder(ERational otherValue)
Finds the remainder that results when this instance is divided by the value
of an arbitrary-precision rational number.
|
ERational |
ERational.Subtract(ERational otherValue)
Subtracts an arbitrary-precision rational number from this instance.
|
| Modifier and Type | Method and Description |
|---|---|
ERational |
ERational.Add(ERational otherValue)
Adds two rational numbers.
|
int |
ERational.compareTo(ERational other)
Compares an arbitrary-precision rational number with this instance.
|
int |
ERational.CompareToTotal(ERational other)
Compares the values of this object and another object, imposing a total
ordering on all possible values.
|
int |
ERational.CompareToTotalMagnitude(ERational other)
Compares the absolute values of this object and another object, imposing a
total ordering on all possible values (ignoring their signs).
|
ERational |
ERational.CopySign(ERational other)
Returns a number with the same value as this one, but copying the sign
(positive or negative) of another number.
|
ERational |
ERational.Divide(ERational otherValue)
Divides this instance by the value of an arbitrary-precision rational number
object.
|
boolean |
ERational.equals(ERational other)
Determines whether this object's numerator, denominator, and properties
are equal to those of another object.
|
ERational |
ERational.Multiply(ERational otherValue)
Multiplies this instance by the value of an arbitrary-precision rational
number.
|
ERational |
ERational.Remainder(ERational otherValue)
Finds the remainder that results when this instance is divided by the value
of an arbitrary-precision rational number.
|
ERational |
ERational.Subtract(ERational otherValue)
Subtracts an arbitrary-precision rational number from this instance.
|
CBOR for Java documentation, generated in 2016.