val_in_env(method,valpath,setvalue)
sets, gets, or runs a table function for the value indexed by _ENV with valpath split by "." (depends on method parameter (also works for metatables)) the value indexed by _ENV with valpath split by "."
hexadecstr(val,len)
returns a string containing the given number in hexadecimal form e.g. hexadecstr(31,3) returns "01f"
strtohexadec(str)
returns a hexadecimal number from the given string
strtobin(str,len)
returns a binary number from the given string
isub(str,i)
returns the letter of the letter index of the given string
opensplit(str,sep,convert_num)
returns the unpacked split table
remove(str,remstr)
returns the given string with no instance of the "remstr" parameter
replace(str,remstr,rplstr)
returns the given string with all instances of remstr replaced with rplstr
indchar(str)
returns a table of all characters in the given string in order
indword(str)
returns a table of all words in the given string in order
indline(str)
returns a table of all lines in the given string in order
wrap_text_intbl(str,width)
returns a table of all lines of the given string wrapped
wrap_text(str,width)
returns wrap_text_tbl concatenated by "\n"
concat(tbl,sep)
returns a string of the entire table given concatenated by the separator parameter
numstr(num,len)
returns the number value in a string with the length given e.g. numstr(39,3) returns "039"
has_double(str)
returns the amount of 8-pixel-wide characters in the given string
centre(x,y,centx,centy)
returns a table of the positions added by the either "cent" parameter for that coordinate, or, if the parameter is nil, 64 e.g. centre(-4,4,50) returns {46,68}
avg([...])
[...]
. number values in average calculation
returns the average of the values given
tabavg(tbl)
returns the average of all of the values in the given table
tabiavg(tbl,index)
returns the average of the index of all of the tables in the given table e.g. tabiavg({{1,2,4},{1,4},{1,5,7},{7,6,4,8}},2) returns average of 2,4,5, and 6
r(val)
returns the value given. useful for conditional values with functions e.g. (boolean and flr or r)(8.5)
fraction(num,denom)
returns the fraction of the numerator divided by the denominator. hardly necessary but just a shortcut i guess
factorial(val)
returns factorial of the value given
round(val,base)
base
. number to round to. defaults to 1
returns the rounded value to the base
recip(val)
returns the reciprocal of the given value. again, hardly necessary, but this is used in all variations of sec(val)
comball(type,[...])
[...]
. given tables of values in operation
returns a table of all tables given changed by the desired operation. operation is decided from the following strings:
"add":addition,"sub":subtraction,"mul":multiplication,"div":division"mod":modulation,
"pow":exponentiation,"concat":concatenation
tan(val)
returns tangent of given value
cot(val)
returns cotangent of given value
sec(val)
returns secant of given value
cosec(val)
returns cosecant of given value
arcsin(val)
returns arcsine of given value
arccos(val)
returns arccosine of given value
arcsec(val)
returns arcsecant of given value
arccsc(val)
returns arccosecant of given value
arccot(val)
returns arccotangent of given value
bool(val,[convert_num])
[convert_num]
. if number in string matters. defaults to false
returns "boolean value" of given value
bflr(val,base)
base defaults to 1. returns lowest multiple of base from given value
bceil(val,base)
base defaults to 1. returns highest multiple of base from given value
exp10(val)
returns 10^val divided by 10