Added several math functions for converting units