static int iround_clamp(double d) { ret iround(clamp(d, Int.MIN_VALUE, Int.MAX_VALUE)); }