Skip to content
On this page

Class: default

lib/break_eternity.default

The Decimal's value is simply mantissa * 10^exponent.

Constructors

constructor

new default(value?)

Parameters

NameType
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

NameType
valuenumber

Returns

void


exponent

get exponent(): number

Returns

number

set exponent(value): void

Parameters

NameType
valuenumber

Returns

void


m

get m(): number

Returns

number

set m(value): void

Parameters

NameType
valuenumber

Returns

void


mantissa

get mantissa(): number

Returns

number

set mantissa(value): void

Parameters

NameType
valuenumber

Returns

void


s

get s(): number

Returns

number

set s(value): void

Parameters

NameType
valuenumber

Returns

void

Methods

abs

abs(): default

Returns

default


absLog10

absLog10(): default

Returns

default


acos

acos(): default

Returns

default


acosh

acosh(): default

Returns

default


add

add(value): default

Parameters

NameType
valueDecimalSource

Returns

default


ascensionPenalty

ascensionPenalty(ascensions): default

Joke function from Realm Grinder

Parameters

NameType
ascensionsDecimalSource

Returns

default


asin

asin(): default

Returns

default


asinh

asinh(): default

Returns

default


atan

atan(): default

Returns

default


atanh

atanh(): default

Returns

default


cbrt

cbrt(): default

Returns

default


ceil

ceil(): default

Returns

default


clamp

clamp(min, max): default

Parameters

NameType
minDecimalSource
maxDecimalSource

Returns

default


clampMax

clampMax(max): default

Parameters

NameType
maxDecimalSource

Returns

default


clampMin

clampMin(min): default

Parameters

NameType
minDecimalSource

Returns

default


cmp

cmp(value): CompareResult

-1 for less than value, 0 for equals value, 1 for greater than value

Parameters

NameType
valueDecimalSource

Returns

CompareResult


cmp_tolerance

cmp_tolerance(value, tolerance): CompareResult

Parameters

NameType
valueDecimalSource
tolerancenumber

Returns

CompareResult


cmpabs

cmpabs(value): CompareResult

Parameters

NameType
valueDecimalSource

Returns

CompareResult


compare

compare(value): CompareResult

Parameters

NameType
valueDecimalSource

Returns

CompareResult


compare_tolerance

compare_tolerance(value, tolerance): CompareResult

Parameters

NameType
valueDecimalSource
tolerancenumber

Returns

CompareResult


cos

cos(): default

Returns

default


cosh

cosh(): default

Returns

default


cube

cube(): default

Returns

default


div

div(value): default

Parameters

NameType
valueDecimalSource

Returns

default


divide

divide(value): default

Parameters

NameType
valueDecimalSource

Returns

default


divideBy

divideBy(value): default

Parameters

NameType
valueDecimalSource

Returns

default


dividedBy

dividedBy(value): default

Parameters

NameType
valueDecimalSource

Returns

default


egg

egg(): default

Joke function from Cookie Clicker. It's 'egg'

Returns

default


eq

eq(value): boolean

Parameters

NameType
valueDecimalSource

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

NameType
valueDecimalSource
tolerancenumber

Returns

boolean


equals

equals(value): boolean

Parameters

NameType
valueDecimalSource

Returns

boolean


equals_tolerance

equals_tolerance(value, tolerance): boolean

Parameters

NameType
valueDecimalSource
tolerancenumber

Returns

boolean


exp

exp(): default

Returns

default


factorial

factorial(): default

Returns

default


floor

floor(): default

Returns

default


fromComponents

fromComponents(sign, layer, mag): default

Parameters

NameType
signnumber
layernumber
magnumber

Returns

default


fromComponents_noNormalize

fromComponents_noNormalize(sign, layer, mag): default

Parameters

NameType
signnumber
layernumber
magnumber

Returns

default


fromDecimal

fromDecimal(value): default

Parameters

NameType
valuedefault

Returns

default


fromMantissaExponent

fromMantissaExponent(mantissa, exponent): default

Parameters

NameType
mantissanumber
exponentnumber

Returns

default


fromMantissaExponent_noNormalize

fromMantissaExponent_noNormalize(mantissa, exponent): default

Parameters

NameType
mantissanumber
exponentnumber

Returns

default


fromNumber

fromNumber(value): default

Parameters

NameType
valuenumber

Returns

default


fromString

fromString(value): default

Parameters

NameType
valuestring

Returns

default


fromValue

fromValue(value): default

Parameters

NameType
valueDecimalSource

Returns

default


gamma

gamma(): default

Returns

default


greaterThan

greaterThan(other): boolean

Parameters

NameType
otherDecimalSource

Returns

boolean


greaterThanOrEqualTo

greaterThanOrEqualTo(other): boolean

Parameters

NameType
otherDecimalSource

Returns

boolean


gt

gt(value): boolean

Parameters

NameType
valueDecimalSource

Returns

boolean


gt_tolerance

gt_tolerance(value, tolerance): boolean

Parameters

NameType
valueDecimalSource
tolerancenumber

Returns

boolean


gte

gte(value): boolean

Parameters

NameType
valueDecimalSource

Returns

boolean


gte_tolerance

gte_tolerance(value, tolerance): boolean

Parameters

NameType
valueDecimalSource
tolerancenumber

Returns

boolean


isFinite

isFinite(): boolean

Returns

boolean


isNan

isNan(): boolean

Returns

boolean


iteratedexp

iteratedexp(height?, payload?): default

Parameters

NameTypeDefault value
heightnumber2
payloaddefaultundefined

Returns

default


iteratedlog

iteratedlog(base?, times?): default

Parameters

NameTypeDefault value
baseDecimalSource10
timesnumber1

Returns

default


lambertw

lambertw(): default

Returns

default


layeradd

layeradd(diff, base): default

Parameters

NameType
diffnumber
baseDecimalSource

Returns

default


layeradd10

layeradd10(diff): default

Parameters

NameType
diffDecimalSource

Returns

default


lessThan

lessThan(other): boolean

Parameters

NameType
otherDecimalSource

Returns

boolean


lessThanOrEqualTo

lessThanOrEqualTo(other): boolean

Parameters

NameType
otherDecimalSource

Returns

boolean


ln

ln(): default

Returns

default


lngamma

lngamma(): default

Returns

default


log

log(base): default

Parameters

NameType
baseDecimalSource

Returns

default


log10

log10(): default

Returns

default


log2

log2(): default

Returns

default


logarithm

logarithm(base): default

Parameters

NameType
baseDecimalSource

Returns

default


lt

lt(value): boolean

Parameters

NameType
valueDecimalSource

Returns

boolean


lt_tolerance

lt_tolerance(value, tolerance): boolean

Parameters

NameType
valueDecimalSource
tolerancenumber

Returns

boolean


lte

lte(value): boolean

Parameters

NameType
valueDecimalSource

Returns

boolean


lte_tolerance

lte_tolerance(value, tolerance): boolean

Parameters

NameType
valueDecimalSource
tolerancenumber

Returns

boolean


magnitudeWithDecimalPlaces

magnitudeWithDecimalPlaces(places): number

Parameters

NameType
placesnumber

Returns

number


mantissaWithDecimalPlaces

mantissaWithDecimalPlaces(places): number

Parameters

NameType
placesnumber

Returns

number


max

max(value): default

Parameters

NameType
valueDecimalSource

Returns

default


maxabs

maxabs(value): default

Parameters

NameType
valueDecimalSource

Returns

default


min

min(value): default

Parameters

NameType
valueDecimalSource

Returns

default


minabs

minabs(value): default

Parameters

NameType
valueDecimalSource

Returns

default


minus

minus(value): default

Parameters

NameType
valueDecimalSource

Returns

default


mul

mul(value): default

Parameters

NameType
valueDecimalSource

Returns

default


multiply

multiply(value): default

Parameters

NameType
valueDecimalSource

Returns

default


neg

neg(): default

Returns

default


negate

negate(): default

Returns

default


negated

negated(): default

Returns

default


neq

neq(value): boolean

Parameters

NameType
valueDecimalSource

Returns

boolean


neq_tolerance

neq_tolerance(value, tolerance): boolean

Parameters

NameType
valueDecimalSource
tolerancenumber

Returns

boolean


normalize

normalize(): default

Returns

default


notEquals

notEquals(value): boolean

Parameters

NameType
valueDecimalSource

Returns

boolean


notEquals_tolerance

notEquals_tolerance(value, tolerance): boolean

Parameters

NameType
valueDecimalSource
tolerancenumber

Returns

boolean


pLog10

pLog10(): default

Returns

default


pentate

pentate(height?, payload?): default

Parameters

NameTypeDefault value
heightnumber2
payloadDecimalSourceundefined

Returns

default


plus

plus(value): default

Parameters

NameType
valueDecimalSource

Returns

default


pow

pow(value): default

Parameters

NameType
valueDecimalSource

Returns

default


pow10

pow10(): default

Returns

default


pow_base

pow_base(value): default

Parameters

NameType
valueDecimalSource

Returns

default


recip

recip(): default

Returns

default


reciprocal

reciprocal(): default

Returns

default


reciprocate

reciprocate(): default

Returns

default


root

root(value): default

Parameters

NameType
valueDecimalSource

Returns

default


round

round(): default

Returns

default


sgn

sgn(): number

Returns

number


sin

sin(): default

Returns

default


sinh

sinh(): default

Returns

default


slog

slog(base?): default

Parameters

NameTypeDefault value
baseDecimalSource10

Returns

default


sqr

sqr(): default

Returns

default


sqrt

sqrt(): default

Returns

default


ssqrt

ssqrt(): default

Returns

default


sub

sub(value): default

Parameters

NameType
valueDecimalSource

Returns

default


subtract

subtract(value): default

Parameters

NameType
valueDecimalSource

Returns

default


tan

tan(): default

Returns

default


tanh

tanh(): default

Returns

default


tetrate

tetrate(height?, payload?): default

Parameters

NameTypeDefault value
heightnumber2
payloadDecimalSourceundefined

Returns

default


times

times(value): default

Parameters

NameType
valueDecimalSource

Returns

default


toExponential

toExponential(places): string

Parameters

NameType
placesnumber

Returns

string


toFixed

toFixed(places): string

Parameters

NameType
placesnumber

Returns

string


toJSON

toJSON(): string

Returns

string


toNumber

toNumber(): number

Returns

number


toPrecision

toPrecision(places): string

Parameters

NameType
placesnumber

Returns

string


toString

toString(): string

Returns

string


toStringWithDecimalPlaces

toStringWithDecimalPlaces(places): string

Parameters

NameType
placesnumber

Returns

string


trunc

trunc(): default

Returns

default


valueOf

valueOf(): string

Returns

string


abs

Static abs(value): default

Parameters

NameType
valueDecimalSource

Returns

default


absLog10

Static absLog10(value): default

Parameters

NameType
valueDecimalSource

Returns

default


add

Static add(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


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

NameType
resourcesAvailableDecimalSource
priceStartDecimalSource
priceAddDecimalSource
currentOwnedDecimalSource

Returns

default


affordArithmeticSeries_core

Static affordArithmeticSeries_core(resourcesAvailable, priceStart, priceAdd, currentOwned): default

Parameters

NameType
resourcesAvailabledefault
priceStartdefault
priceAdddefault
currentOwneddefault

Returns

default


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

NameType
resourcesAvailableDecimalSource
priceStartDecimalSource
priceRatioDecimalSource
currentOwnedDecimalSource

Returns

default


affordGeometricSeries_core

Static affordGeometricSeries_core(resourcesAvailable, priceStart, priceRatio, currentOwned): default

Parameters

NameType
resourcesAvailabledefault
priceStartdefault
priceRatiodefault
currentOwnedDecimalSource

Returns

default


cbrt

Static cbrt(value): default

Parameters

NameType
valueDecimalSource

Returns

default


ceil

Static ceil(value): default

Parameters

NameType
valueDecimalSource

Returns

default


clamp

Static clamp(value, min, max): default

Parameters

NameType
valueDecimalSource
minDecimalSource
maxDecimalSource

Returns

default


clampMax

Static clampMax(value, max): default

Parameters

NameType
valueDecimalSource
maxDecimalSource

Returns

default


clampMin

Static clampMin(value, min): default

Parameters

NameType
valueDecimalSource
minDecimalSource

Returns

default


cmp

Static cmp(value, other): CompareResult

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

CompareResult


cmp_tolerance

Static cmp_tolerance(value, other, tolerance): CompareResult

Parameters

NameType
valueDecimalSource
otherDecimalSource
tolerancenumber

Returns

CompareResult


cmpabs

Static cmpabs(value, other): CompareResult

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

CompareResult


compare

Static compare(value, other): CompareResult

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

CompareResult


compare_tolerance

Static compare_tolerance(value, other, tolerance): CompareResult

Parameters

NameType
valueDecimalSource
otherDecimalSource
tolerancenumber

Returns

CompareResult


critical_section

Static critical_section(base, height, grid): number

Parameters

NameType
basenumber
heightnumber
gridnumber[][]

Returns

number


cube

Static cube(value): default

Parameters

NameType
valueDecimalSource

Returns

default


div

Static div(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


divide

Static divide(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


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

NameType
costDecimalSource
currentRpSDecimalSource
deltaRpSDecimalSource

Returns

default


efficiencyOfPurchase_core

Static efficiencyOfPurchase_core(cost, currentRpS, deltaRpS): default

Parameters

NameType
costdefault
currentRpSdefault
deltaRpSdefault

Returns

default


eq

Static eq(value, other): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

boolean


eq_tolerance

Static eq_tolerance(value, other, tolerance): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource
tolerancenumber

Returns

boolean


equals

Static equals(value, other): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

boolean


equals_tolerance

Static equals_tolerance(value, other, tolerance): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource
tolerancenumber

Returns

boolean


exp

Static exp(value): default

Parameters

NameType
valueDecimalSource

Returns

default


factorial

Static factorial(value, _other?): default

Parameters

NameType
valueDecimalSource
_other?undefined

Returns

default


floor

Static floor(value): default

Parameters

NameType
valueDecimalSource

Returns

default


fromComponents

Static fromComponents(sign, layer, mag): default

Parameters

NameType
signnumber
layernumber
magnumber

Returns

default


fromComponents_noNormalize

Static fromComponents_noNormalize(sign, layer, mag): default

Parameters

NameType
signnumber
layernumber
magnumber

Returns

default


fromDecimal

Static fromDecimal(value): default

Parameters

NameType
valuedefault

Returns

default


fromMantissaExponent

Static fromMantissaExponent(mantissa, exponent): default

Parameters

NameType
mantissanumber
exponentnumber

Returns

default


fromMantissaExponent_noNormalize

Static fromMantissaExponent_noNormalize(mantissa, exponent): default

Parameters

NameType
mantissanumber
exponentnumber

Returns

default


fromNumber

Static fromNumber(value): default

Parameters

NameType
valuenumber

Returns

default


fromString

Static fromString(value): default

Parameters

NameType
valuestring

Returns

default


fromValue

Static fromValue(value): default

Parameters

NameType
valueDecimalSource

Returns

default


fromValue_noAlloc

Static fromValue_noAlloc(value): default

Parameters

NameType
valueDecimalSource

Returns

default


gamma

Static gamma(value, _other?): default

Parameters

NameType
valueDecimalSource
_other?undefined

Returns

default


gt

Static gt(value, other): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

boolean


gt_tolerance

Static gt_tolerance(value, other, tolerance): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource
tolerancenumber

Returns

boolean


gte

Static gte(value, other): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

boolean


gte_tolerance

Static gte_tolerance(value, other, tolerance): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource
tolerancenumber

Returns

boolean


isFinite

Static isFinite(value): boolean

Parameters

NameType
valueDecimalSource

Returns

boolean


isNaN

Static isNaN(value): boolean

Parameters

NameType
valueDecimalSource

Returns

boolean


iteratedexp

Static iteratedexp(value, height?, payload?): default

Parameters

NameTypeDefault value
valueDecimalSourceundefined
heightnumber2
payloaddefaultundefined

Returns

default


iteratedlog

Static iteratedlog(value, base?, times?): default

Parameters

NameTypeDefault value
valueDecimalSourceundefined
baseDecimalSource10
timesnumber1

Returns

default


lambertw

Static lambertw(value): default

Parameters

NameType
valueDecimalSource

Returns

default


layeradd

Static layeradd(value, diff, base?): default

Parameters

NameTypeDefault value
valueDecimalSourceundefined
diffnumberundefined
basenumber10

Returns

default


layeradd10

Static layeradd10(value, diff): default

Parameters

NameType
valueDecimalSource
diffDecimalSource

Returns

default


ln

Static ln(value): default

Parameters

NameType
valueDecimalSource

Returns

default


lngamma

Static lngamma(value, _other?): default

Parameters

NameType
valueDecimalSource
_other?undefined

Returns

default


log

Static log(value, base): default

Parameters

NameType
valueDecimalSource
baseDecimalSource

Returns

default


log10

Static log10(value): default

Parameters

NameType
valueDecimalSource

Returns

default


log2

Static log2(value): default

Parameters

NameType
valueDecimalSource

Returns

default


logarithm

Static logarithm(value, base): default

Parameters

NameType
valueDecimalSource
baseDecimalSource

Returns

default


lt

Static lt(value, other): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

boolean


lt_tolerance

Static lt_tolerance(value, other, tolerance): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource
tolerancenumber

Returns

boolean


lte

Static lte(value, other): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

boolean


lte_tolerance

Static lte_tolerance(value, other, tolerance): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource
tolerancenumber

Returns

boolean


max

Static max(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


maxabs

Static maxabs(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


min

Static min(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


minabs

Static minabs(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


minus

Static minus(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


mul

Static mul(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


multiply

Static multiply(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


neg

Static neg(value): default

Parameters

NameType
valueDecimalSource

Returns

default


negate

Static negate(value): default

Parameters

NameType
valueDecimalSource

Returns

default


negated

Static negated(value): default

Parameters

NameType
valueDecimalSource

Returns

default


neq

Static neq(value, other): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

boolean


neq_tolerance

Static neq_tolerance(value, other, tolerance): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource
tolerancenumber

Returns

boolean


notEquals

Static notEquals(value, other): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

boolean


notEquals_tolerance

Static notEquals_tolerance(value, other, tolerance): boolean

Parameters

NameType
valueDecimalSource
otherDecimalSource
tolerancenumber

Returns

boolean


pLog10

Static pLog10(value): default

Parameters

NameType
valueDecimalSource

Returns

default


pentate

Static pentate(value, height?, payload?): default

Parameters

NameTypeDefault value
valueDecimalSourceundefined
heightnumber2
payloadDecimalSourceundefined

Returns

default


plus

Static plus(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


pow

Static pow(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


pow10

Static pow10(value): default

Parameters

NameType
valueDecimalSource

Returns

default


randomDecimalForTesting

Static randomDecimalForTesting(maxLayers): default

Parameters

NameType
maxLayersnumber

Returns

default


recip

Static recip(value): default

Parameters

NameType
valueDecimalSource

Returns

default


reciprocal

Static reciprocal(value): default

Parameters

NameType
valueDecimalSource

Returns

default


reciprocate

Static reciprocate(value): default

Parameters

NameType
valueDecimalSource

Returns

default


root

Static root(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


round

Static round(value): default

Parameters

NameType
valueDecimalSource

Returns

default


sgn

Static sgn(value): number

Parameters

NameType
valueDecimalSource

Returns

number


sign

Static sign(value): number

Parameters

NameType
valueDecimalSource

Returns

number


slog

Static slog(value, base?): default

Parameters

NameTypeDefault value
valueDecimalSourceundefined
basenumber10

Returns

default


slog_critical

Static slog_critical(base, height): number

Parameters

NameType
basenumber
heightnumber

Returns

number


sqr

Static sqr(value): default

Parameters

NameType
valueDecimalSource

Returns

default


sqrt

Static sqrt(value): default

Parameters

NameType
valueDecimalSource

Returns

default


ssqrt

Static ssqrt(value): default

Parameters

NameType
valueDecimalSource

Returns

default


sub

Static sub(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


subtract

Static subtract(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


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

NameType
numItemsDecimalSource
priceStartDecimalSource
priceAddDecimalSource
currentOwnedDecimalSource

Returns

default


sumArithmeticSeries_core

Static sumArithmeticSeries_core(numItems, priceStart, priceAdd, currentOwned): default

Parameters

NameType
numItemsdefault
priceStartdefault
priceAdddefault
currentOwneddefault

Returns

default


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

NameType
numItemsDecimalSource
priceStartDecimalSource
priceRatioDecimalSource
currentOwnedDecimalSource

Returns

default


sumGeometricSeries_core

Static sumGeometricSeries_core(numItems, priceStart, priceRatio, currentOwned): default

Parameters

NameType
numItemsDecimalSource
priceStartdefault
priceRatiodefault
currentOwnedDecimalSource

Returns

default


tetrate

Static tetrate(value, height?, payload?): default

Parameters

NameTypeDefault value
valueDecimalSourceundefined
heightnumber2
payloadDecimalSourceundefined

Returns

default


tetrate_critical

Static tetrate_critical(base, height): number

Parameters

NameType
basenumber
heightnumber

Returns

number


times

Static times(value, other): default

Parameters

NameType
valueDecimalSource
otherDecimalSource

Returns

default


trunc

Static trunc(value): default

Parameters

NameType
valueDecimalSource

Returns

default