headers and comments for module02
This commit is contained in:
@@ -11,5 +11,6 @@
|
||||
|
||||
// mathematics
|
||||
#define PERCENT(percent, total) (((float)percent / 100) * total)
|
||||
#define DIV_ROUND_CLOSEST(n, d) ((((n) < 0) == ((d) < 0)) ? (((n) + (d)/2)/(d)) : (((n) - (d)/2)/(d)))
|
||||
|
||||
#endif // UTILS_H
|
||||
Reference in New Issue
Block a user