roundNearest#
Fully qualified name: isaacsim::core::includes::math::roundNearest
- inline double isaacsim::core::includes::math::roundNearest(
- double input,
- double place,
Rounds a number to the nearest multiple of a given value.
Rounds the input to the nearest multiple of the place value. For example, roundNearest(3.7, 0.5) returns 3.5.
Note
If place is 0, returns the input value unchanged
- Parameters:
input – [in] Value to round
place – [in] Multiple to round to
- Returns:
double The rounded value