fix throw math

(double)(int / int) vs (double / double)