Optional value: DecimalSourceA number (integer) between -EXP_LIMIT and EXP_LIMIT. Non-integral/out of bounds will cause bad things to happen.
A number (double) with absolute value between [1, 10) OR exactly 0. If mantissa is ever 10 or greater, it should be normalized (divide by 10 and add 1 to exponent until it is less than 10, or multiply by 10 and subtract 1 from exponent until it is 1 or greater). Infinity/-Infinity/NaN will cause bad things to happen.
Static MAX_Static MINUS_Static MIN_Static NEGATIVE_Static NUMBER_Static NUMBER_Static NaNStatic ONEStatic POSITIVE_Static ZERO-1 for less than value, 0 for equals value, 1 for greater than value
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.
Static absStatic absStatic addStatic affordIf 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?
Static affordIf 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.
Static cbrtStatic ceilStatic clampStatic clampStatic clampStatic cmpStatic cmp_Static compareStatic compare_Static constStatic constantStatic cubeStatic decimalStatic divStatic divideStatic dpStatic efficiencyWhen 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
Static eqStatic eq_Static equalsStatic equals_Static expStatic floorStatic fromStatic fromStatic fromStatic fromStatic fromStatic fromStatic fromStatic gtStatic gt_Static gteStatic gte_Static lnStatic logStatic log10Static log2Static logarithmStatic ltStatic lt_Static lteStatic lte_Static maxStatic minStatic minusStatic mulStatic multiplyStatic negStatic negateStatic negatedStatic neqStatic neq_Static notStatic notStatic pStatic plusStatic powStatic pow10Static randomStatic recipStatic reciprocalStatic reciprocateStatic roundStatic sgnStatic signStatic sqrStatic sqrtStatic subStatic subtractStatic sumHow 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
Static sumHow 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?
Static timesStatic truncGenerated using TypeDoc
The Decimal's value is simply mantissa * 10^exponent.