Sample code:
Integer result;
//Finding minimum value
result = math.min(a,b);
//Finding maximum value
result = math.max(a,b);
//Modulo division
result = math.mod(a,b);
For more info,
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_math.htm