trigonometry for floats