In js division operation type to number for toPrecision call