Y : constant Integer := Integer (Float'Rounding (X)); · int y = (int)floorf(x + 0.5f); · int y = static_cast<int>(std::floor(x + 0.5f)); · long y = (long)Math.
確定! 回上一頁