Class: default
lib/break_eternity.default
The Decimal's value is simply mantissa * 10^exponent.
Constructors
constructor
• new default(value?
)
Parameters
Name | Type |
---|---|
value? | DecimalSource |
Properties
layer
• layer: number
= Number.NaN
Defined in
profectus/src/lib/break_eternity.ts:507
mag
• mag: number
= Number.NaN
Defined in
profectus/src/lib/break_eternity.ts:506
sign
• sign: number
= Number.NaN
Defined in
profectus/src/lib/break_eternity.ts:505
dInf
▪ Static
Readonly
dInf: default
Defined in
profectus/src/lib/break_eternity.ts:500
dNaN
▪ Static
Readonly
dNaN: default
Defined in
profectus/src/lib/break_eternity.ts:499
dNegInf
▪ Static
Readonly
dNegInf: default
Defined in
profectus/src/lib/break_eternity.ts:501
dNegOne
▪ Static
Readonly
dNegOne: default
Defined in
profectus/src/lib/break_eternity.ts:496
dNumberMax
▪ Static
Readonly
dNumberMax: default
Defined in
profectus/src/lib/break_eternity.ts:502
dNumberMin
▪ Static
Readonly
dNumberMin: default
Defined in
profectus/src/lib/break_eternity.ts:503
dOne
▪ Static
Readonly
dOne: default
Defined in
profectus/src/lib/break_eternity.ts:495
dTen
▪ Static
Readonly
dTen: default
Defined in
profectus/src/lib/break_eternity.ts:498
dTwo
▪ Static
Readonly
dTwo: default
Defined in
profectus/src/lib/break_eternity.ts:497
dZero
▪ Static
Readonly
dZero: default
Defined in
profectus/src/lib/break_eternity.ts:494
Accessors
e
• get
e(): number
Returns
number
• set
e(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
exponent
• get
exponent(): number
Returns
number
• set
exponent(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
m
• get
m(): number
Returns
number
• set
m(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
mantissa
• get
mantissa(): number
Returns
number
• set
mantissa(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
s
• get
s(): number
Returns
number
• set
s(value
): void
Parameters
Name | Type |
---|---|
value | number |
Returns
void
Methods
abs
▸ abs(): default
Returns
absLog10
▸ absLog10(): default
Returns
acos
▸ acos(): default
Returns
acosh
▸ acosh(): default
Returns
add
▸ add(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
ascensionPenalty
▸ ascensionPenalty(ascensions
): default
Joke function from Realm Grinder
Parameters
Name | Type |
---|---|
ascensions | DecimalSource |
Returns
asin
▸ asin(): default
Returns
asinh
▸ asinh(): default
Returns
atan
▸ atan(): default
Returns
atanh
▸ atanh(): default
Returns
cbrt
▸ cbrt(): default
Returns
ceil
▸ ceil(): default
Returns
clamp
▸ clamp(min
, max
): default
Parameters
Name | Type |
---|---|
min | DecimalSource |
max | DecimalSource |
Returns
clampMax
▸ clampMax(max
): default
Parameters
Name | Type |
---|---|
max | DecimalSource |
Returns
clampMin
▸ clampMin(min
): default
Parameters
Name | Type |
---|---|
min | DecimalSource |
Returns
cmp
▸ cmp(value
): CompareResult
-1 for less than value, 0 for equals value, 1 for greater than value
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
cmp_tolerance
▸ cmp_tolerance(value
, tolerance
): CompareResult
Parameters
Name | Type |
---|---|
value | DecimalSource |
tolerance | number |
Returns
cmpabs
▸ cmpabs(value
): CompareResult
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
compare
▸ compare(value
): CompareResult
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
compare_tolerance
▸ compare_tolerance(value
, tolerance
): CompareResult
Parameters
Name | Type |
---|---|
value | DecimalSource |
tolerance | number |
Returns
cos
▸ cos(): default
Returns
cosh
▸ cosh(): default
Returns
cube
▸ cube(): default
Returns
div
▸ div(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
divide
▸ divide(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
divideBy
▸ divideBy(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
dividedBy
▸ dividedBy(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
egg
▸ egg(): default
Joke function from Cookie Clicker. It's 'egg'
Returns
eq
▸ eq(value
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
boolean
eq_tolerance
▸ eq_tolerance(value
, tolerance
): boolean
Tolerance is a relative tolerance, multiplied by the greater of the magnitudes of the two arguments. For example, if you put in 1e-9, then any number closer to the larger number than (larger number)*1e-9 will be considered equal.
Parameters
Name | Type |
---|---|
value | DecimalSource |
tolerance | number |
Returns
boolean
equals
▸ equals(value
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
boolean
equals_tolerance
▸ equals_tolerance(value
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
tolerance | number |
Returns
boolean
exp
▸ exp(): default
Returns
factorial
▸ factorial(): default
Returns
floor
▸ floor(): default
Returns
fromComponents
▸ fromComponents(sign
, layer
, mag
): default
Parameters
Name | Type |
---|---|
sign | number |
layer | number |
mag | number |
Returns
fromComponents_noNormalize
▸ fromComponents_noNormalize(sign
, layer
, mag
): default
Parameters
Name | Type |
---|---|
sign | number |
layer | number |
mag | number |
Returns
fromDecimal
▸ fromDecimal(value
): default
Parameters
Name | Type |
---|---|
value | default |
Returns
fromMantissaExponent
▸ fromMantissaExponent(mantissa
, exponent
): default
Parameters
Name | Type |
---|---|
mantissa | number |
exponent | number |
Returns
fromMantissaExponent_noNormalize
▸ fromMantissaExponent_noNormalize(mantissa
, exponent
): default
Parameters
Name | Type |
---|---|
mantissa | number |
exponent | number |
Returns
fromNumber
▸ fromNumber(value
): default
Parameters
Name | Type |
---|---|
value | number |
Returns
fromString
▸ fromString(value
): default
Parameters
Name | Type |
---|---|
value | string |
Returns
fromValue
▸ fromValue(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
gamma
▸ gamma(): default
Returns
greaterThan
▸ greaterThan(other
): boolean
Parameters
Name | Type |
---|---|
other | DecimalSource |
Returns
boolean
greaterThanOrEqualTo
▸ greaterThanOrEqualTo(other
): boolean
Parameters
Name | Type |
---|---|
other | DecimalSource |
Returns
boolean
gt
▸ gt(value
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
boolean
gt_tolerance
▸ gt_tolerance(value
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
tolerance | number |
Returns
boolean
gte
▸ gte(value
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
boolean
gte_tolerance
▸ gte_tolerance(value
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
tolerance | number |
Returns
boolean
isFinite
▸ isFinite(): boolean
Returns
boolean
isNan
▸ isNan(): boolean
Returns
boolean
iteratedexp
▸ iteratedexp(height?
, payload?
): default
Parameters
Name | Type | Default value |
---|---|---|
height | number | 2 |
payload | default | undefined |
Returns
iteratedlog
▸ iteratedlog(base?
, times?
): default
Parameters
Name | Type | Default value |
---|---|---|
base | DecimalSource | 10 |
times | number | 1 |
Returns
lambertw
▸ lambertw(): default
Returns
layeradd
▸ layeradd(diff
, base
): default
Parameters
Name | Type |
---|---|
diff | number |
base | DecimalSource |
Returns
layeradd10
▸ layeradd10(diff
): default
Parameters
Name | Type |
---|---|
diff | DecimalSource |
Returns
lessThan
▸ lessThan(other
): boolean
Parameters
Name | Type |
---|---|
other | DecimalSource |
Returns
boolean
lessThanOrEqualTo
▸ lessThanOrEqualTo(other
): boolean
Parameters
Name | Type |
---|---|
other | DecimalSource |
Returns
boolean
ln
▸ ln(): default
Returns
lngamma
▸ lngamma(): default
Returns
log
▸ log(base
): default
Parameters
Name | Type |
---|---|
base | DecimalSource |
Returns
log10
▸ log10(): default
Returns
log2
▸ log2(): default
Returns
logarithm
▸ logarithm(base
): default
Parameters
Name | Type |
---|---|
base | DecimalSource |
Returns
lt
▸ lt(value
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
boolean
lt_tolerance
▸ lt_tolerance(value
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
tolerance | number |
Returns
boolean
lte
▸ lte(value
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
boolean
lte_tolerance
▸ lte_tolerance(value
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
tolerance | number |
Returns
boolean
magnitudeWithDecimalPlaces
▸ magnitudeWithDecimalPlaces(places
): number
Parameters
Name | Type |
---|---|
places | number |
Returns
number
mantissaWithDecimalPlaces
▸ mantissaWithDecimalPlaces(places
): number
Parameters
Name | Type |
---|---|
places | number |
Returns
number
max
▸ max(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
maxabs
▸ maxabs(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
min
▸ min(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
minabs
▸ minabs(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
minus
▸ minus(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
mul
▸ mul(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
multiply
▸ multiply(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
neg
▸ neg(): default
Returns
negate
▸ negate(): default
Returns
negated
▸ negated(): default
Returns
neq
▸ neq(value
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
boolean
neq_tolerance
▸ neq_tolerance(value
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
tolerance | number |
Returns
boolean
normalize
▸ normalize(): default
Returns
notEquals
▸ notEquals(value
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
boolean
notEquals_tolerance
▸ notEquals_tolerance(value
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
tolerance | number |
Returns
boolean
pLog10
▸ pLog10(): default
Returns
pentate
▸ pentate(height?
, payload?
): default
Parameters
Name | Type | Default value |
---|---|---|
height | number | 2 |
payload | DecimalSource | undefined |
Returns
plus
▸ plus(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
pow
▸ pow(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
pow10
▸ pow10(): default
Returns
pow_base
▸ pow_base(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
recip
▸ recip(): default
Returns
reciprocal
▸ reciprocal(): default
Returns
reciprocate
▸ reciprocate(): default
Returns
root
▸ root(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
round
▸ round(): default
Returns
sgn
▸ sgn(): number
Returns
number
sin
▸ sin(): default
Returns
sinh
▸ sinh(): default
Returns
slog
▸ slog(base?
): default
Parameters
Name | Type | Default value |
---|---|---|
base | DecimalSource | 10 |
Returns
sqr
▸ sqr(): default
Returns
sqrt
▸ sqrt(): default
Returns
ssqrt
▸ ssqrt(): default
Returns
sub
▸ sub(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
subtract
▸ subtract(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
tan
▸ tan(): default
Returns
tanh
▸ tanh(): default
Returns
tetrate
▸ tetrate(height?
, payload?
): default
Parameters
Name | Type | Default value |
---|---|---|
height | number | 2 |
payload | DecimalSource | undefined |
Returns
times
▸ times(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
toExponential
▸ toExponential(places
): string
Parameters
Name | Type |
---|---|
places | number |
Returns
string
toFixed
▸ toFixed(places
): string
Parameters
Name | Type |
---|---|
places | number |
Returns
string
toJSON
▸ toJSON(): string
Returns
string
toNumber
▸ toNumber(): number
Returns
number
toPrecision
▸ toPrecision(places
): string
Parameters
Name | Type |
---|---|
places | number |
Returns
string
toString
▸ toString(): string
Returns
string
toStringWithDecimalPlaces
▸ toStringWithDecimalPlaces(places
): string
Parameters
Name | Type |
---|---|
places | number |
Returns
string
trunc
▸ trunc(): default
Returns
valueOf
▸ valueOf(): string
Returns
string
abs
▸ Static
abs(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
absLog10
▸ Static
absLog10(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
add
▸ Static
add(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
affordArithmeticSeries
▸ Static
affordArithmeticSeries(resourcesAvailable
, priceStart
, priceAdd
, currentOwned
): default
If you're willing to spend 'resourcesAvailable' and want to buy something with additively increasing cost each purchase (start at priceStart, add by priceAdd, already own currentOwned), how much of it can you buy?
Parameters
Name | Type |
---|---|
resourcesAvailable | DecimalSource |
priceStart | DecimalSource |
priceAdd | DecimalSource |
currentOwned | DecimalSource |
Returns
affordArithmeticSeries_core
▸ Static
affordArithmeticSeries_core(resourcesAvailable
, priceStart
, priceAdd
, currentOwned
): default
Parameters
Name | Type |
---|---|
resourcesAvailable | default |
priceStart | default |
priceAdd | default |
currentOwned | default |
Returns
affordGeometricSeries
▸ Static
affordGeometricSeries(resourcesAvailable
, priceStart
, priceRatio
, currentOwned
): default
If you're willing to spend 'resourcesAvailable' and want to buy something with exponentially increasing cost each purchase (start at priceStart, multiply by priceRatio, already own currentOwned), how much of it can you buy? Adapted from Trimps source code.
Parameters
Name | Type |
---|---|
resourcesAvailable | DecimalSource |
priceStart | DecimalSource |
priceRatio | DecimalSource |
currentOwned | DecimalSource |
Returns
affordGeometricSeries_core
▸ Static
affordGeometricSeries_core(resourcesAvailable
, priceStart
, priceRatio
, currentOwned
): default
Parameters
Name | Type |
---|---|
resourcesAvailable | default |
priceStart | default |
priceRatio | default |
currentOwned | DecimalSource |
Returns
cbrt
▸ Static
cbrt(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
ceil
▸ Static
ceil(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
clamp
▸ Static
clamp(value
, min
, max
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
min | DecimalSource |
max | DecimalSource |
Returns
clampMax
▸ Static
clampMax(value
, max
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
max | DecimalSource |
Returns
clampMin
▸ Static
clampMin(value
, min
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
min | DecimalSource |
Returns
cmp
▸ Static
cmp(value
, other
): CompareResult
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
cmp_tolerance
▸ Static
cmp_tolerance(value
, other
, tolerance
): CompareResult
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
tolerance | number |
Returns
cmpabs
▸ Static
cmpabs(value
, other
): CompareResult
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
compare
▸ Static
compare(value
, other
): CompareResult
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
compare_tolerance
▸ Static
compare_tolerance(value
, other
, tolerance
): CompareResult
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
tolerance | number |
Returns
critical_section
▸ Static
critical_section(base
, height
, grid
): number
Parameters
Name | Type |
---|---|
base | number |
height | number |
grid | number [][] |
Returns
number
cube
▸ Static
cube(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
div
▸ Static
div(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
divide
▸ Static
divide(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
efficiencyOfPurchase
▸ Static
efficiencyOfPurchase(cost
, currentRpS
, deltaRpS
): default
When comparing two purchases that cost (resource) and increase your resource/sec by (deltaRpS), the lowest efficiency score is the better one to purchase. From Frozen Cookies: http://cookieclicker.wikia.com/wiki/Frozen_Cookies_(JavaScript_Add-on)#Efficiency.3F_What.27s_that.3F
Parameters
Name | Type |
---|---|
cost | DecimalSource |
currentRpS | DecimalSource |
deltaRpS | DecimalSource |
Returns
efficiencyOfPurchase_core
▸ Static
efficiencyOfPurchase_core(cost
, currentRpS
, deltaRpS
): default
Parameters
Name | Type |
---|---|
cost | default |
currentRpS | default |
deltaRpS | default |
Returns
eq
▸ Static
eq(value
, other
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
boolean
eq_tolerance
▸ Static
eq_tolerance(value
, other
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
tolerance | number |
Returns
boolean
equals
▸ Static
equals(value
, other
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
boolean
equals_tolerance
▸ Static
equals_tolerance(value
, other
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
tolerance | number |
Returns
boolean
exp
▸ Static
exp(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
factorial
▸ Static
factorial(value
, _other?
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
_other? | undefined |
Returns
floor
▸ Static
floor(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
fromComponents
▸ Static
fromComponents(sign
, layer
, mag
): default
Parameters
Name | Type |
---|---|
sign | number |
layer | number |
mag | number |
Returns
fromComponents_noNormalize
▸ Static
fromComponents_noNormalize(sign
, layer
, mag
): default
Parameters
Name | Type |
---|---|
sign | number |
layer | number |
mag | number |
Returns
fromDecimal
▸ Static
fromDecimal(value
): default
Parameters
Name | Type |
---|---|
value | default |
Returns
fromMantissaExponent
▸ Static
fromMantissaExponent(mantissa
, exponent
): default
Parameters
Name | Type |
---|---|
mantissa | number |
exponent | number |
Returns
fromMantissaExponent_noNormalize
▸ Static
fromMantissaExponent_noNormalize(mantissa
, exponent
): default
Parameters
Name | Type |
---|---|
mantissa | number |
exponent | number |
Returns
fromNumber
▸ Static
fromNumber(value
): default
Parameters
Name | Type |
---|---|
value | number |
Returns
fromString
▸ Static
fromString(value
): default
Parameters
Name | Type |
---|---|
value | string |
Returns
fromValue
▸ Static
fromValue(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
fromValue_noAlloc
▸ Static
fromValue_noAlloc(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
gamma
▸ Static
gamma(value
, _other?
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
_other? | undefined |
Returns
gt
▸ Static
gt(value
, other
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
boolean
gt_tolerance
▸ Static
gt_tolerance(value
, other
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
tolerance | number |
Returns
boolean
gte
▸ Static
gte(value
, other
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
boolean
gte_tolerance
▸ Static
gte_tolerance(value
, other
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
tolerance | number |
Returns
boolean
isFinite
▸ Static
isFinite(value
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
boolean
isNaN
▸ Static
isNaN(value
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
boolean
iteratedexp
▸ Static
iteratedexp(value
, height?
, payload?
): default
Parameters
Name | Type | Default value |
---|---|---|
value | DecimalSource | undefined |
height | number | 2 |
payload | default | undefined |
Returns
iteratedlog
▸ Static
iteratedlog(value
, base?
, times?
): default
Parameters
Name | Type | Default value |
---|---|---|
value | DecimalSource | undefined |
base | DecimalSource | 10 |
times | number | 1 |
Returns
lambertw
▸ Static
lambertw(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
layeradd
▸ Static
layeradd(value
, diff
, base?
): default
Parameters
Name | Type | Default value |
---|---|---|
value | DecimalSource | undefined |
diff | number | undefined |
base | number | 10 |
Returns
layeradd10
▸ Static
layeradd10(value
, diff
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
diff | DecimalSource |
Returns
ln
▸ Static
ln(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
lngamma
▸ Static
lngamma(value
, _other?
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
_other? | undefined |
Returns
log
▸ Static
log(value
, base
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
base | DecimalSource |
Returns
log10
▸ Static
log10(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
log2
▸ Static
log2(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
logarithm
▸ Static
logarithm(value
, base
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
base | DecimalSource |
Returns
lt
▸ Static
lt(value
, other
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
boolean
lt_tolerance
▸ Static
lt_tolerance(value
, other
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
tolerance | number |
Returns
boolean
lte
▸ Static
lte(value
, other
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
boolean
lte_tolerance
▸ Static
lte_tolerance(value
, other
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
tolerance | number |
Returns
boolean
max
▸ Static
max(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
maxabs
▸ Static
maxabs(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
min
▸ Static
min(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
minabs
▸ Static
minabs(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
minus
▸ Static
minus(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
mul
▸ Static
mul(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
multiply
▸ Static
multiply(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
neg
▸ Static
neg(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
negate
▸ Static
negate(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
negated
▸ Static
negated(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
neq
▸ Static
neq(value
, other
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
boolean
neq_tolerance
▸ Static
neq_tolerance(value
, other
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
tolerance | number |
Returns
boolean
notEquals
▸ Static
notEquals(value
, other
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
boolean
notEquals_tolerance
▸ Static
notEquals_tolerance(value
, other
, tolerance
): boolean
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
tolerance | number |
Returns
boolean
pLog10
▸ Static
pLog10(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
pentate
▸ Static
pentate(value
, height?
, payload?
): default
Parameters
Name | Type | Default value |
---|---|---|
value | DecimalSource | undefined |
height | number | 2 |
payload | DecimalSource | undefined |
Returns
plus
▸ Static
plus(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
pow
▸ Static
pow(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
pow10
▸ Static
pow10(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
randomDecimalForTesting
▸ Static
randomDecimalForTesting(maxLayers
): default
Parameters
Name | Type |
---|---|
maxLayers | number |
Returns
recip
▸ Static
recip(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
reciprocal
▸ Static
reciprocal(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
reciprocate
▸ Static
reciprocate(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
root
▸ Static
root(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
round
▸ Static
round(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
sgn
▸ Static
sgn(value
): number
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
number
sign
▸ Static
sign(value
): number
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
number
slog
▸ Static
slog(value
, base?
): default
Parameters
Name | Type | Default value |
---|---|---|
value | DecimalSource | undefined |
base | number | 10 |
Returns
slog_critical
▸ Static
slog_critical(base
, height
): number
Parameters
Name | Type |
---|---|
base | number |
height | number |
Returns
number
sqr
▸ Static
sqr(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
sqrt
▸ Static
sqrt(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
ssqrt
▸ Static
ssqrt(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
Returns
sub
▸ Static
sub(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
subtract
▸ Static
subtract(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
sumArithmeticSeries
▸ Static
sumArithmeticSeries(numItems
, priceStart
, priceAdd
, currentOwned
): default
How much resource would it cost to buy (numItems) items if you already have currentOwned, the initial price is priceStart and it adds priceAdd each purchase? Adapted from http://www.mathwords.com/a/arithmetic_series.htm
Parameters
Name | Type |
---|---|
numItems | DecimalSource |
priceStart | DecimalSource |
priceAdd | DecimalSource |
currentOwned | DecimalSource |
Returns
sumArithmeticSeries_core
▸ Static
sumArithmeticSeries_core(numItems
, priceStart
, priceAdd
, currentOwned
): default
Parameters
Name | Type |
---|---|
numItems | default |
priceStart | default |
priceAdd | default |
currentOwned | default |
Returns
sumGeometricSeries
▸ Static
sumGeometricSeries(numItems
, priceStart
, priceRatio
, currentOwned
): default
How much resource would it cost to buy (numItems) items if you already have currentOwned, the initial price is priceStart and it multiplies by priceRatio each purchase?
Parameters
Name | Type |
---|---|
numItems | DecimalSource |
priceStart | DecimalSource |
priceRatio | DecimalSource |
currentOwned | DecimalSource |
Returns
sumGeometricSeries_core
▸ Static
sumGeometricSeries_core(numItems
, priceStart
, priceRatio
, currentOwned
): default
Parameters
Name | Type |
---|---|
numItems | DecimalSource |
priceStart | default |
priceRatio | default |
currentOwned | DecimalSource |
Returns
tetrate
▸ Static
tetrate(value
, height?
, payload?
): default
Parameters
Name | Type | Default value |
---|---|---|
value | DecimalSource | undefined |
height | number | 2 |
payload | DecimalSource | undefined |
Returns
tetrate_critical
▸ Static
tetrate_critical(base
, height
): number
Parameters
Name | Type |
---|---|
base | number |
height | number |
Returns
number
times
▸ Static
times(value
, other
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |
other | DecimalSource |
Returns
trunc
▸ Static
trunc(value
): default
Parameters
Name | Type |
---|---|
value | DecimalSource |