

frexp( num) - Extract mantissa and exponent from a floating point number. fmod( value,modulus) - Returns the remainder of the division of value by modulus that rounds the quotient towards zero. floor( value) - Returns the floor of value. exp( value) - Returns the exponent of value. deg( radians) - Returns the degree equivalent of the radian value. cos( degrees) - Returns the cosine of the degree value. ceil( value) - Returns the ceiling of value. atan2( y, x) - Returns the arc tangent of Y/X in degrees. atan( value) - Returns the arc tangent of the value in degrees. asin( value) - Returns the arc sine of the value in degrees.

acos( value) - Returns the arc cosine of the value in degrees. Lua's standard math library works with radians.Ībs( value) - Returns the absolute value of the number. The trigonometry functions are not just references they have degree→radian conversion wrappers.

Most of these functions are shorthand references to the Lua math library (which is available via "math.", see MathLibraryTutorial for more info). rawset( table, index, value) - Sets the value of a table item without invoking metamethods. rawget( table, index) - Gets the value of a table item without invoking metamethods. rawequal( value, value) - Compares two values for equality without invoking metamethods. xpcall( func, err ) - Returns a boolean indicating successful execution of func and calls err on failure, additionally returning func's or err's results. (The only Lua data types.) unpack( table) - Returns the contents of its argument as separate values. time( table) - Returns time in seconds since epoch (00:00:00 Jan 1 1970) type( var) - Returns the type of variable as a string, "nil", "boolean", "number", "string", "table", "function", "thread" or "userdata". setmetatable( table, metatable) - Sets the metatable of the given table. setfenv( function or integer, table) - Sets the table representing the stack frame of the given function or stack level. select( index, list) - Returns the number of items in list or a subset of the list beginning at index and running to the end of the list. pcall( func ) - Returns a boolean value indicating successful execution of func and the error message or func's results as additional values. newproxy( boolean or proxy) - Creates a userdata with a sharable metatable. next( table, index) - Returns the next key, value pair of the table, allowing you to walk over the table. loadstring( "Lua code") - Parse the string as Lua code and return it as a function reference. getmetatable( obj, mtable) - Returns the metatable of the given table or userdata object. ) getfenv( function or integer) - Returns the table representing the environment of the given function or stack level. (Function gcinfo is deprecated use collectgarbage("count") instead. gcinfo() - Returns the number of kB of add-on memory in use and the current garbage collection threshold (in kB). error( "error message",level) - Throws an error with the given error message. difftime( t1, t2) - Calculate the number of seconds between time t1 to time t2. (Added in 1.10.1) date( format, time) - Returns the current date according to the user's machine. collectgarbage() - Forces garbage collection. If it is, returns value, otherwise causes a Lua error to be thrown. In addition to this list, see also Debugging Functions.Īssert( value) - asserts a value evaluates to true. These functions are part of the Lua programming language (v5.1), described in the Lua 5.1 Reference Manual. Notably, operating system and file I/O libraries are not present. How to fix it so that modulo doesn't bug out ? class GeneratorRachunkow ", wynik.ToString().Note that the World of Warcraft API does not provide all standard Lua functions. Int64 convertedNumber = Int64.Parse(mergedNumber) with Value was either too large or too small for an Int64. I'm having a problem with modulo from int which has 31 chars.
