Added the dealer proper.
This commit is contained in:
@ -11,9 +11,18 @@
|
||||
* Returns the modulous a result for b. Consdiders negative numbers correctly.
|
||||
* @param a Number to modulo against. (a % b)
|
||||
* @param b Number to modulo with. (a % b)
|
||||
* @returns The modulo result.
|
||||
*/
|
||||
#define mathMod(a,b) (a%b+b)%b
|
||||
|
||||
/**
|
||||
* Returns the modulous a result for b. Works for floating point numbers.
|
||||
* @param a Number to modulo against. (a % b)
|
||||
* @param b Number to modulo with. (a % b)
|
||||
* @returns The modulo result.
|
||||
*/
|
||||
#define mathModFloat(a, b) (float)fmod(a, b)
|
||||
|
||||
/**
|
||||
* Returns the maximum of two numbers.
|
||||
* @param a Number A.
|
||||
|
Reference in New Issue
Block a user