static short roundToShort(double d) { ret (short) iround(d); }