Number

interface Number : Cloneable, Comparable<T>

An arithmetic number.

Inheritors

Properties

Link copied to clipboard
Compare result.
Link copied to clipboard
Compare result.
Link copied to clipboard
val Compare_Less: Int = -1
Compare result.
Link copied to clipboard
Effectivly needed precision.
Link copied to clipboard
val Max_Precision: Int = 18
Max supported precision.

Functions

Link copied to clipboard
abstract fun $div(y: Number): Number
x ÷ y
Link copied to clipboard
abstract fun $minus(y: Number): Number
x - y
Link copied to clipboard
abstract fun $plus(y: Number): Number
x + y
Link copied to clipboard
abstract fun $times(y: Number): Number
x × y
Link copied to clipboard
abstract fun $times$times(y: Number): Number
xy
Link copied to clipboard
abstract fun abs(): Number
|x|
Link copied to clipboard
abstract fun and(y: Number): Number
Logical and
Link copied to clipboard
abstract fun arc_cos(): Number
abstract fun arc_cos(Half_Circle: Number): Number
arc cosine
Link copied to clipboard
abstract fun arc_cos_hyp(): Number
area hyperbolic cosine: loge (x + √(x-1) × √(x+1))
Link copied to clipboard
abstract fun arc_sin(): Number
abstract fun arc_sin(Half_Circle: Number): Number
arc sine
Link copied to clipboard
abstract fun arc_sin_hyp(): Number
area hyperbolic sine: loge (x + √(x² + 1))
Link copied to clipboard
abstract fun arc_tan(): Number
abstract fun arc_tan(Half_Circle: Number): Number
arc tangent
Link copied to clipboard
abstract fun arc_tan_hyp(): Number
area hyperbolic tangent: loge ((1 + x) ÷ (1 - x)) / 2
Link copied to clipboard
abstract fun As_BCDFloat(): BCDFloat
Either convert to a BCDFloat or return this.
Link copied to clipboard
abstract fun As_BCDFraction(): BCDFraction
Either convert to a or return this.
Link copied to clipboard
abstract fun As_BCDInteger(): BCDInteger
Either convert to a BCDInteger or return this.
Link copied to clipboard
abstract fun Clone(): Number
clone the float - but it might be easier to use the provided copy Constructor instead.
Link copied to clipboard
protected open fun clone(): Any
Link copied to clipboard
abstract fun Coefficient_As_Long(): Long
coefficient - while a 18 digits number can also be represented as an long an 18digits multiplication need a 36digits temporary and that is more then a long can do.
Link copied to clipboard
abstract fun Compare(Value: Number): Int
Compare values
Link copied to clipboard
abstract fun compareTo(rightValue: Number): Int
Link copied to clipboard
abstract fun cos(): Number
cos (x)
abstract fun cos(Half_Circle: Number): Number
cosine
Link copied to clipboard
abstract fun cos_hyp(): Number
Hyperbolic cosine: (Exponent^x + Exponent^-x)/2
Link copied to clipboard
abstract fun Digits(): Array<Byte>
number: sum(i = 0 ...
Link copied to clipboard
open fun div(y: Number): Number
x ÷ y
Link copied to clipboard
abstract fun equals(rightValue: Any): Boolean
Link copied to clipboard
abstract fun exp_10(): Number
10x
Link copied to clipboard
abstract fun exp_e(): Number
ex
Link copied to clipboard
abstract fun Exponent(): Int
current exponent - note that the exponent is based on the internal representation where the radix point is right most.
Link copied to clipboard
protected open fun finalize()
Link copied to clipboard
abstract fun Fix(Decimal: Int, Exponent: Int): Number
Round to a given Precision after the decimal point.
Link copied to clipboard
abstract fun Frac(): Number
Recompose a frac double from the given data.
Link copied to clipboard
fun getClass(): Class<out Any>
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
abstract fun Indirect_Value(Digit_Count: Int): Int
Get valuef or indirect addressing.
Link copied to clipboard
abstract fun Integer(): Number
integer part of the BCDFloat Do not mix up with To_Integer - This version returns another BCDFloat!
Link copied to clipboard
abstract fun Is_Finite(): Boolean
current value is a normal number
Link copied to clipboard
abstract fun Is_Infinite(): Boolean
current value is Infinity (but not N/A).
Link copied to clipboard
abstract fun Is_Integer(): Boolean
Current value is integer value.
Link copied to clipboard
abstract fun Is_NaN(): Boolean
current value is not a number
Link copied to clipboard
abstract fun Is_Negative(): Boolean
Current value us negative
Link copied to clipboard
abstract fun Is_Zero(): Boolean
value is 0
Link copied to clipboard
abstract fun log_10(): Number
log10 (x)
Link copied to clipboard
abstract fun log_e(): Number
loge (x)
Link copied to clipboard
open fun minus(y: Number): Number
x - y
Link copied to clipboard
abstract fun neg(): Number
Link copied to clipboard
abstract fun Normalize()
normalize the value depending on type: remove leading zeros and / or trailing zeros
Link copied to clipboard
abstract fun not(): Number
Logical not
Link copied to clipboard
fun notify()
Link copied to clipboard
fun notifyAll()
Link copied to clipboard
abstract fun Num_Digits(): Int
the current number of digits - not that when the number is not normalised there might be more 0's in the number then strictly needed.
Link copied to clipboard
abstract fun or(y: Number): Number
Logical or
Link copied to clipboard
abstract fun P_To_X(θ: Number): Number
abstract fun P_To_X(θ: Number, Half_Circle: Number): Number
Convert Polar to Rectangle Coordinates
Link copied to clipboard
abstract fun P_To_Y(θ: Number): Number
abstract fun P_To_Y(θ: Number, Half_Circle: Number): Number
Convert Polar to Rectangle Coordinates
Link copied to clipboard
open fun plus(y: Number): Number
x + y
Link copied to clipboard
open fun pow(y: Number): Number
xy
Link copied to clipboard
abstract fun R_To_R(y: Number): Number
Convert Rectangle to Polar Coordinates
Link copied to clipboard
abstract fun R_To_θ(y: Number): Number
abstract fun R_To_θ(y: Number, Half_Circle: Number): Number
Convert Rectangle to Polar Coordinates
Link copied to clipboard
abstract fun root(r: Number): Number
r√x
Link copied to clipboard
abstract fun Round(): Number
Round to effective Precision and Exponent.
abstract fun Round(Precision: Int, Exponent: Int): Number
Round to a given Precision and Exponent.
Link copied to clipboard
abstract fun sin(): Number
abstract fun sin(Half_Circle: Number): Number
sine
Link copied to clipboard
abstract fun sin_hyp(): Number
hyperbolic sine: (ex - e-x) ÷ 2
Link copied to clipboard
abstract fun square(): Number
x2
Link copied to clipboard
abstract fun square_root(): Number
2√x
Link copied to clipboard
abstract fun tan(): Number
tan x
abstract fun tan(Half_Circle: Number): Number
tangent
Link copied to clipboard
abstract fun tan_hyp(): Number
Hyperbolic tangent: (e2x - 1) ÷ (e2x + 1)
Link copied to clipboard
open fun times(y: Number): Number
x × y
Link copied to clipboard
abstract fun To_Debug_String(): String
convert to native/debug string representation
Link copied to clipboard
abstract fun To_Integer(): Int
Convert to integer Do not mix up with Integer - This version returns a Java int!
Link copied to clipboard
abstract fun To_Long(): Long
Convert to long integer Do not mix up with Integer - This version returns a Java int!
Link copied to clipboard
abstract fun toString(): String
display as human readable string.
Link copied to clipboard
fun wait()
Link copied to clipboard
abstract fun xor(y: Number): Number
Logical xor