Profectus / lib/break_eternity / default
Class: default ​
The Decimal's value is simply mantissa * 10^exponent.
Constructors ​
new default() ​
new default(
value
?):default
Parameters ​
value? ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:364
Properties ​
layer ​
layer:
number
=0
Defined in ​
profectus/src/lib/break_eternity.ts:362
mag ​
mag:
number
=0
Defined in ​
profectus/src/lib/break_eternity.ts:361
sign ​
sign:
number
=0
Defined in ​
profectus/src/lib/break_eternity.ts:360
dInf ​
static
dInf:default
Defined in ​
profectus/src/lib/break_eternity.ts:353
dNaN ​
static
dNaN:default
Defined in ​
profectus/src/lib/break_eternity.ts:352
dNegInf ​
static
dNegInf:default
Defined in ​
profectus/src/lib/break_eternity.ts:354
dNegOne ​
static
dNegOne:default
Defined in ​
profectus/src/lib/break_eternity.ts:349
dNumberMax ​
static
dNumberMax:default
Defined in ​
profectus/src/lib/break_eternity.ts:355
dNumberMin ​
static
dNumberMin:default
Defined in ​
profectus/src/lib/break_eternity.ts:356
dOne ​
static
dOne:default
Defined in ​
profectus/src/lib/break_eternity.ts:348
dTen ​
static
dTen:default
Defined in ​
profectus/src/lib/break_eternity.ts:351
dTwo ​
static
dTwo:default
Defined in ​
profectus/src/lib/break_eternity.ts:350
dZero ​
static
dZero:default
Defined in ​
profectus/src/lib/break_eternity.ts:347
Accessors ​
e ​
Get Signature ​
get e():
number
Returns ​
number
Set Signature ​
set e(
value
):void
Parameters ​
value ​
number
Returns ​
void
Defined in ​
profectus/src/lib/break_eternity.ts:409
exponent ​
Get Signature ​
get exponent():
number
Returns ​
number
Set Signature ​
set exponent(
value
):void
Parameters ​
value ​
number
Returns ​
void
Defined in ​
profectus/src/lib/break_eternity.ts:448
m ​
Get Signature ​
get m():
number
Returns ​
number
Set Signature ​
set m(
value
):void
Parameters ​
value ​
number
Returns ​
void
Defined in ​
profectus/src/lib/break_eternity.ts:374
mantissa ​
Get Signature ​
get mantissa():
number
Returns ​
number
Set Signature ​
set mantissa(
value
):void
Parameters ​
value ​
number
Returns ​
void
Defined in ​
profectus/src/lib/break_eternity.ts:440
s ​
Get Signature ​
get s():
number
Returns ​
number
Set Signature ​
set s(
value
):void
Parameters ​
value ​
number
Returns ​
void
Defined in ​
profectus/src/lib/break_eternity.ts:426
Methods ​
abs() ​
abs():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1634
absLog10() ​
absLog10():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2107
acos() ​
acos():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2883
acosh() ​
acosh():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2919
add() ​
add(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1698
ascensionPenalty() ​
ascensionPenalty(
ascensions
):default
Joke function from Realm Grinder
Parameters ​
ascensions ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2934
asin() ​
asin():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2873
asinh() ​
asinh():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2915
atan() ​
atan():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2893
atanh() ​
atanh():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2923
cbrt() ​
cbrt():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2361
ceil() ​
ceil():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1678
clamp() ​
clamp(
min
,max
):default
Parameters ​
min ​
max ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2018
clampMax() ​
clampMax(
max
):default
Parameters ​
max ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2026
clampMin() ​
clampMin(
min
):default
Parameters ​
min ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2022
cmp() ​
cmp(
value
):CompareResult
-1 for less than value, 0 for equals value, 1 for greater than value
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1921
cmp_tolerance() ​
cmp_tolerance(
value
,tolerance
):CompareResult
Parameters ​
value ​
tolerance ​
number
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2030
cmpabs() ​
cmpabs(
value
):CompareResult
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1932
compare() ​
compare(
value
):CompareResult
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1951
compare_tolerance() ​
compare_tolerance(
value
,tolerance
):CompareResult
Parameters ​
value ​
tolerance ​
number
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2035
cos() ​
cos():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2853
cosh() ​
cosh():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2907
cube() ​
cube():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2357
div() ​
div(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1883
divide() ​
divide(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1888
divideBy() ​
divideBy(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1892
dividedBy() ​
dividedBy(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1896
egg() ​
egg():
default
Joke function from Cookie Clicker. It's 'egg'
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2945
eq() ​
eq(
value
):boolean
Parameters ​
value ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:1963
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 ​
value ​
tolerance? ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:2044
equals() ​
equals(
value
):boolean
Parameters ​
value ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:1970
equals_tolerance() ​
equals_tolerance(
value
,tolerance
):boolean
Parameters ​
value ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:2068
exp() ​
exp():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2325
factorial() ​
factorial():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2261
floor() ​
floor():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1668
fromComponents() ​
fromComponents(
sign
,layer
,mag
):this
Parameters ​
sign ​
number
layer ​
number
mag ​
number
Returns ​
this
Defined in ​
profectus/src/lib/break_eternity.ts:1188
fromComponents_noNormalize() ​
fromComponents_noNormalize(
sign
,layer
,mag
):this
Parameters ​
sign ​
number
layer ​
number
mag ​
number
Returns ​
this
Defined in ​
profectus/src/lib/break_eternity.ts:1197
fromDecimal() ​
fromDecimal(
value
):this
Parameters ​
value ​
Returns ​
this
Defined in ​
profectus/src/lib/break_eternity.ts:1220
fromMantissaExponent() ​
fromMantissaExponent(
mantissa
,exponent
):this
Parameters ​
mantissa ​
number
exponent ​
number
Returns ​
this
Defined in ​
profectus/src/lib/break_eternity.ts:1204
fromMantissaExponent_noNormalize() ​
fromMantissaExponent_noNormalize(
mantissa
,exponent
):this
Parameters ​
mantissa ​
number
exponent ​
number
Returns ​
this
Defined in ​
profectus/src/lib/break_eternity.ts:1214
fromNumber() ​
fromNumber(
value
):this
Parameters ​
value ​
number
Returns ​
this
Defined in ​
profectus/src/lib/break_eternity.ts:1227
fromString() ​
fromString(
value
):default
Parameters ​
value ​
string
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1235
fromValue() ​
fromValue(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1484
gamma() ​
gamma():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2274
greaterThan() ​
greaterThan(
other
):boolean
Parameters ​
other ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:2961
greaterThanOrEqualTo() ​
greaterThanOrEqualTo(
other
):boolean
Parameters ​
other ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:2957
gt() ​
gt(
value
):boolean
Parameters ​
value ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:1990
gt_tolerance() ​
gt_tolerance(
value
,tolerance
):boolean
Parameters ​
value ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:2090
gte() ​
gte(
value
):boolean
Parameters ​
value ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:1994
gte_tolerance() ​
gte_tolerance(
value
,tolerance
):boolean
Parameters ​
value ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:2095
isFinite() ​
isFinite():
boolean
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:1959
isNan() ​
isNan():
boolean
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:1955
iteratedexp() ​
iteratedexp(
height
,payload
):default
Parameters ​
height ​
number
= 2
payload ​
default
= ...
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2489
iteratedlog() ​
iteratedlog(
base
,times
):default
Parameters ​
base ​
DecimalSource
= 10
times ​
number
= 1
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2495
lambertw() ​
lambertw():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2775
layeradd() ​
layeradd(
diff
,base
):default
Parameters ​
diff ​
number
base ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2758
layeradd10() ​
layeradd10(
diff
):default
Parameters ​
diff ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2691
lessThan() ​
lessThan(
other
):boolean
Parameters ​
other ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:2953
lessThanOrEqualTo() ​
lessThanOrEqualTo(
other
):boolean
Parameters ​
other ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:2949
ln() ​
ln():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2158
lngamma() ​
lngamma():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2321
log() ​
log(
base
):default
Parameters ​
base ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2127
log10() ​
log10():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2117
log2() ​
log2():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2144
logarithm() ​
logarithm(
base
):default
Parameters ​
base ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2172
lt() ​
lt(
value
):boolean
Parameters ​
value ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:1982
lt_tolerance() ​
lt_tolerance(
value
,tolerance
):boolean
Parameters ​
value ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:2080
lte() ​
lte(
value
):boolean
Parameters ​
value ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:1986
lte_tolerance() ​
lte_tolerance(
value
,tolerance
):boolean
Parameters ​
value ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:2085
magnitudeWithDecimalPlaces() ​
magnitudeWithDecimalPlaces(
places
):number
Parameters ​
places ​
number
Returns ​
number
Defined in ​
profectus/src/lib/break_eternity.ts:1534
mantissaWithDecimalPlaces() ​
mantissaWithDecimalPlaces(
places
):number
Parameters ​
places ​
number
Returns ​
number
Defined in ​
profectus/src/lib/break_eternity.ts:1521
max() ​
max(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1998
maxabs() ​
maxabs(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2008
min() ​
min(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2003
minabs() ​
minabs(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2013
minus() ​
minus(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1801
mul() ​
mul(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1805
multiply() ​
multiply(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1875
neg() ​
neg():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1638
negate() ​
negate():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1642
negated() ​
negated():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1646
neq() ​
neq(
value
):boolean
Parameters ​
value ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:1974
neq_tolerance() ​
neq_tolerance(
value
,tolerance
):boolean
Parameters ​
value ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:2072
normalize() ​
normalize():
this
Returns ​
this
Defined in ​
profectus/src/lib/break_eternity.ts:1120
notEquals() ​
notEquals(
value
):boolean
Parameters ​
value ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:1978
notEquals_tolerance() ​
notEquals_tolerance(
value
,tolerance
):boolean
Parameters ​
value ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:2076
pentate() ​
pentate(
height
,payload
):default
Parameters ​
height ​
number
= 2
payload ​
DecimalSource
= ...
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2807
pLog10() ​
pLog10():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2100
plus() ​
plus(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1789
pow() ​
pow(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2176
pow_base() ​
pow_base(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2252
pow10() ​
pow10():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2212
recip() ​
recip():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1900
reciprocal() ​
reciprocal():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1910
reciprocate() ​
reciprocate():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1914
root() ​
root(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2256
round() ​
round():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1658
sgn() ​
sgn():
number
Returns ​
number
Defined in ​
profectus/src/lib/break_eternity.ts:1654
sin() ​
sin():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2843
sinh() ​
sinh():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2903
slog() ​
slog(
base
,iterations
):default
Parameters ​
base ​
DecimalSource
= 10
iterations ​
number
= 100
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2538
slog_internal() ​
slog_internal(
base
):default
Parameters ​
base ​
DecimalSource
= 10
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2566
sqr() ​
sqr():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2340
sqrt() ​
sqrt():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2344
ssqrt() ​
ssqrt():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2797
sub() ​
sub(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1793
subtract() ​
subtract(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1797
tan() ​
tan():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2863
tanh() ​
tanh():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2911
tetrate() ​
tetrate(
height
,payload
):default
Parameters ​
height ​
number
= 2
payload ​
DecimalSource
= ...
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:2368
times() ​
times(
value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1879
toExponential() ​
toExponential(
places
):string
Parameters ​
places ​
number
Returns ​
string
Defined in ​
profectus/src/lib/break_eternity.ts:1572
toFixed() ​
toFixed(
places
):string
Parameters ​
places ​
number
Returns ​
string
Defined in ​
profectus/src/lib/break_eternity.ts:1579
toJSON() ​
toJSON():
string
Returns ​
string
Defined in ​
profectus/src/lib/break_eternity.ts:1602
toNumber() ​
toNumber():
number
Returns ​
number
Defined in ​
profectus/src/lib/break_eternity.ts:1503
toPrecision() ​
toPrecision(
places
):string
Parameters ​
places ​
number
Returns ​
string
Defined in ​
profectus/src/lib/break_eternity.ts:1586
toString() ​
toString():
string
Returns ​
string
Defined in ​
profectus/src/lib/break_eternity.ts:1547
toStringWithDecimalPlaces() ​
toStringWithDecimalPlaces(
places
):string
Parameters ​
places ​
number
Returns ​
string
Defined in ​
profectus/src/lib/break_eternity.ts:1606
trunc() ​
trunc():
default
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1688
valueOf() ​
valueOf():
string
Returns ​
string
Defined in ​
profectus/src/lib/break_eternity.ts:1598
abs() ​
static
abs(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:515
absLog10() ​
static
absLog10(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:773
acos() ​
static
acos(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:905
acosh() ​
static
acosh(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:929
add() ​
static
add(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:555
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 ​
resourcesAvailable ​
priceStart ​
priceAdd ​
currentOwned ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:976
affordArithmeticSeries_core() ​
static
affordArithmeticSeries_core(resourcesAvailable
,priceStart
,priceAdd
,currentOwned
):default
Parameters ​
resourcesAvailable ​
priceStart ​
priceAdd ​
currentOwned ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1082
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 ​
resourcesAvailable ​
priceStart ​
priceRatio ​
currentOwned ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:944
affordGeometricSeries_core() ​
static
affordGeometricSeries_core(resourcesAvailable
,priceStart
,priceRatio
,currentOwned
):default
Parameters ​
resourcesAvailable ​
priceStart ​
priceRatio ​
currentOwned ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1053
asin() ​
static
asin(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:901
asinh() ​
static
asinh(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:925
atan() ​
static
atan(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:909
atanh() ​
static
atanh(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:933
cbrt() ​
static
cbrt(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:841
ceil() ​
static
ceil(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:547
clamp() ​
static
clamp(value
,min
,max
):default
Parameters ​
value ​
min ​
max ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:677
clampMax() ​
static
clampMax(value
,max
):default
Parameters ​
value ​
max ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:685
clampMin() ​
static
clampMin(value
,min
):default
Parameters ​
value ​
min ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:681
cmp() ​
static
cmp(value
,other
):CompareResult
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:607
cmp_tolerance() ​
static
cmp_tolerance(value
,other
,tolerance
):CompareResult
Parameters ​
value ​
other ​
tolerance ​
number
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:689
cmpabs() ​
static
cmpabs(value
,other
):CompareResult
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:611
compare() ​
static
compare(value
,other
):CompareResult
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:615
compare_tolerance() ​
static
compare_tolerance(value
,other
,tolerance
):CompareResult
Parameters ​
value ​
other ​
tolerance ​
number
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:697
cos() ​
static
cos(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:893
cosh() ​
static
cosh(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:917
critical_section() ​
static
critical_section(base
,height
,grid
):number
Parameters ​
base ​
number
height ​
number
grid ​
number
[][]
Returns ​
number
Defined in ​
profectus/src/lib/break_eternity.ts:2633
cube() ​
static
cube(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:837
div() ​
static
div(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:587
divide() ​
static
divide(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:591
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 ​
cost ​
currentRpS ​
deltaRpS ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1015
efficiencyOfPurchase_core() ​
static
efficiencyOfPurchase_core(cost
,currentRpS
,deltaRpS
):default
Parameters ​
cost ​
currentRpS ​
deltaRpS ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1112
eq() ​
static
eq(value
,other
):boolean
Parameters ​
value ​
other ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:629
eq_tolerance() ​
static
eq_tolerance(value
,other
,tolerance
?):boolean
Parameters ​
value ​
other ​
tolerance? ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:705
equals() ​
static
equals(value
,other
):boolean
Parameters ​
value ​
other ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:633
equals_tolerance() ​
static
equals_tolerance(value
,other
,tolerance
?):boolean
Parameters ​
value ​
other ​
tolerance? ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:713
exp() ​
static
exp(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:825
factorial() ​
static
factorial(value
,_other
?):default
Parameters ​
value ​
_other? ​
undefined
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:813
floor() ​
static
floor(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:543
fromComponents() ​
static
fromComponents(sign
,layer
,mag
):default
Parameters ​
sign ​
number
layer ​
number
mag ​
number
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:455
fromComponents_noNormalize() ​
static
fromComponents_noNormalize(sign
,layer
,mag
):default
Parameters ​
sign ​
number
layer ​
number
mag ​
number
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:459
fromDecimal() ​
static
fromDecimal(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:471
fromMantissaExponent() ​
static
fromMantissaExponent(mantissa
,exponent
):default
Parameters ​
mantissa ​
number
exponent ​
number
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:463
fromMantissaExponent_noNormalize() ​
static
fromMantissaExponent_noNormalize(mantissa
,exponent
):default
Parameters ​
mantissa ​
number
exponent ​
number
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:467
fromNumber() ​
static
fromNumber(value
):default
Parameters ​
value ​
number
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:475
fromString() ​
static
fromString(value
):default
Parameters ​
value ​
string
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:479
fromValue() ​
static
fromValue(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:483
fromValue_noAlloc() ​
Converts a DecimalSource to a Decimal, without constructing a new Decimal if the provided value is already a Decimal.
As the return value could be the provided value itself, this function returns a read-only Decimal to prevent accidental mutations of the value. Use new Decimal(value)
to explicitly create a writeable copy if mutation is required.
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:496
gamma() ​
static
gamma(value
,_other
?):default
Parameters ​
value ​
_other? ​
undefined
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:817
gt() ​
static
gt(value
,other
):boolean
Parameters ​
value ​
other ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:653
gt_tolerance() ​
static
gt_tolerance(value
,other
,tolerance
):boolean
Parameters ​
value ​
other ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:753
gte() ​
static
gte(value
,other
):boolean
Parameters ​
value ​
other ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:657
gte_tolerance() ​
static
gte_tolerance(value
,other
,tolerance
):boolean
Parameters ​
value ​
other ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:761
isFinite() ​
static
isFinite(value
):boolean
Parameters ​
value ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:624
isNaN() ​
static
isNaN(value
):boolean
Parameters ​
value ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:619
iteratedexp() ​
static
iteratedexp(value
,height
,payload
):default
Parameters ​
value ​
height ​
number
= 2
payload ​
default
= ...
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:853
iteratedlog() ​
static
iteratedlog(value
,base
,times
):default
Parameters ​
value ​
base ​
DecimalSource
= 10
times ​
number
= 1
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:857
lambertw() ​
static
lambertw(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:873
layeradd() ​
static
layeradd(value
,diff
,base
):default
Parameters ​
value ​
diff ​
number
base ​
DecimalSource
= 10
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:865
layeradd10() ​
static
layeradd10(value
,diff
):default
Parameters ​
value ​
diff ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:861
ln() ​
static
ln(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:789
lngamma() ​
static
lngamma(value
,_other
?):default
Parameters ​
value ​
_other? ​
undefined
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:821
log() ​
static
log(value
,base
):default
Parameters ​
value ​
base ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:781
log10() ​
static
log10(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:777
log2() ​
static
log2(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:785
logarithm() ​
static
logarithm(value
,base
):default
Parameters ​
value ​
base ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:793
lt() ​
static
lt(value
,other
):boolean
Parameters ​
value ​
other ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:645
lt_tolerance() ​
static
lt_tolerance(value
,other
,tolerance
):boolean
Parameters ​
value ​
other ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:737
lte() ​
static
lte(value
,other
):boolean
Parameters ​
value ​
other ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:649
lte_tolerance() ​
static
lte_tolerance(value
,other
,tolerance
):boolean
Parameters ​
value ​
other ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:745
max() ​
static
max(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:661
maxabs() ​
static
maxabs(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:673
min() ​
static
min(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:665
minabs() ​
static
minabs(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:669
minus() ​
static
minus(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:571
mul() ​
static
mul(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:575
multiply() ​
static
multiply(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:579
neg() ​
static
neg(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:519
negate() ​
static
negate(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:523
negated() ​
static
negated(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:527
neq() ​
static
neq(value
,other
):boolean
Parameters ​
value ​
other ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:637
neq_tolerance() ​
static
neq_tolerance(value
,other
,tolerance
):boolean
Parameters ​
value ​
other ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:721
notEquals() ​
static
notEquals(value
,other
):boolean
Parameters ​
value ​
other ​
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:641
notEquals_tolerance() ​
static
notEquals_tolerance(value
,other
,tolerance
):boolean
Parameters ​
value ​
other ​
tolerance ​
number
Returns ​
boolean
Defined in ​
profectus/src/lib/break_eternity.ts:729
pentate() ​
static
pentate(value
,height
,payload
):default
Parameters ​
value ​
height ​
number
= 2
payload ​
DecimalSource
= ...
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:881
pLog10() ​
static
pLog10(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:769
plus() ​
static
plus(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:559
pow() ​
static
pow(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:797
pow_base() ​
static
pow_base(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:805
pow10() ​
static
pow10(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:801
randomDecimalForTesting() ​
static
randomDecimalForTesting(maxLayers
):default
Parameters ​
maxLayers ​
number
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1023
recip() ​
static
recip(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:595
reciprocal() ​
static
reciprocal(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:599
reciprocate() ​
static
reciprocate(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:603
root() ​
static
root(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:809
round() ​
static
round(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:539
sgn() ​
static
sgn(value
):number
Parameters ​
value ​
Returns ​
number
Defined in ​
profectus/src/lib/break_eternity.ts:535
sign() ​
static
sign(value
):number
Parameters ​
value ​
Returns ​
number
Defined in ​
profectus/src/lib/break_eternity.ts:531
sin() ​
static
sin(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:889
sinh() ​
static
sinh(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:913
slog() ​
static
slog(value
,base
):default
Parameters ​
value ​
base ​
number
= 10
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:869
slog_critical() ​
static
slog_critical(base
,height
):number
Parameters ​
base ​
number
height ​
number
Returns ​
number
Defined in ​
profectus/src/lib/break_eternity.ts:2621
sqr() ​
static
sqr(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:829
sqrt() ​
static
sqrt(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:833
ssqrt() ​
static
ssqrt(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:877
sub() ​
static
sub(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:563
subtract() ​
static
subtract(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:567
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 ​
numItems ​
priceStart ​
priceAdd ​
currentOwned ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:995
sumArithmeticSeries_core() ​
static
sumArithmeticSeries_core(numItems
,priceStart
,priceAdd
,currentOwned
):default
Parameters ​
numItems ​
priceStart ​
priceAdd ​
currentOwned ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1101
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 ​
numItems ​
priceStart ​
priceRatio ​
currentOwned ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:962
sumGeometricSeries_core() ​
static
sumGeometricSeries_core(numItems
,priceStart
,priceRatio
,currentOwned
):default
Parameters ​
numItems ​
priceStart ​
priceRatio ​
currentOwned ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:1070
tan() ​
static
tan(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:897
tanh() ​
static
tanh(value
):default
Parameters ​
value ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:921
tetrate() ​
static
tetrate(value
,height
,payload
):default
Parameters ​
value ​
height ​
number
= 2
payload ​
DecimalSource
= ...
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:845
tetrate_critical() ​
static
tetrate_critical(base
,height
):number
Parameters ​
base ​
number
height ​
number
Returns ​
number
Defined in ​
profectus/src/lib/break_eternity.ts:2629
times() ​
static
times(value
,other
):default
Parameters ​
value ​
other ​
Returns ​
Defined in ​
profectus/src/lib/break_eternity.ts:583
trunc() ​
static
trunc(value
):default