Math
24 functions. Also as Markdown for agents.
- BIS_fnc_arithmeticMeanReturns the arithmetic mean) ("average value") of an array of numbers.
- BIS_fnc_clampClamps provided value within min..max range.
- BIS_fnc_convertUnitsConverts values to a target system of units.
- BIS_fnc_cutDecimalsFunction that rounds specified number to specified amount of decimals.
- BIS_fnc_deltaTimeCalculates and returns the time's delta between previous and current call to this function.
- BIS_fnc_findExtremeReturns the minimum or maximum value in an array of numbers.
- BIS_fnc_fixDateChecks the array with date data and makes sure the values are within the boundries.
- BIS_fnc_geometricMeanReturns the geometric mean of an array of numbers.
- BIS_fnc_greatestNumReturns the greatest number out of the passed set.
- BIS_fnc_HEXtoRGBConvert RGBA hexcode color into RGBA array format.
- BIS_fnc_isLeapYearReturns true if given year is a leap year, otherwise false.
- BIS_fnc_linearConversionLinear conversion of a value from one set to another
- BIS_fnc_lowestNumReturns the lowest number out of the passed set.
- BIS_fnc_monthDaysReturns number of days in given month. Takes in account for leap year.
- BIS_fnc_nearestNumReturns the provided set closest number to the target number.
- BIS_fnc_numberTextConvert a number into string (avoiding scientific notation).
- BIS_fnc_parseNumberReturn number from expression
- BIS_fnc_powReturn value1 raised to the power of value2. Identical to a ^ b.
- BIS_fnc_pulsatePulsates a value from 0 to 1.
- BIS_fnc_randomIntReturns a random integer between the two passed numbers (inclusive). The order of parameters doesn't matter: it can be `[min, max]` or `[max, min]`.
- BIS_fnc_randomNumReturns a random (float) number between the two passed numbers. The order of parameters doesn't matter: it can be `[min, max]` or `[max, min]`.
- BIS_fnc_romanNumeralConvert integer to roman numerals (e.g. 42 becomes "XLII").
- BIS_fnc_roundDirRound direction to nearest set rounding; used for determining cardinal direction.
- BIS_fnc_roundNumRound a number to the provided factor.