double -> signed int