Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

RoundingMode

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Rounding mode flags

Properties

Property Description
FROUND_TO_NEAREST_INT Round to the nearest integer
FROUND_TO_NEG_INF Round to negative infinity
FROUND_TO_POS_INF Round to positive infinity
FROUND_TO_ZERO Round to zero
FROUND_CUR_DIRECTION Round to current direction
FROUND_RAISE_EXC Do not suppress exceptions
FROUND_NO_EXC Suppress exceptions
FROUND_NINT Round to the nearest integer without suppressing exceptions
FROUND_FLOOR Round using Floor function without suppressing exceptions
FROUND_CEIL Round using Ceiling function without suppressing exceptions
FROUND_TRUNC Round by truncating without suppressing exceptions
FROUND_RINT Round using MXCSR.RC without suppressing exceptions
FROUND_NEARBYINT Round using MXCSR.RC and suppressing exceptions
FROUND_NINT_NOEXC Round to nearest integer and suppressing exceptions
FROUND_FLOOR_NOEXC Round using Floor function and suppressing exceptions
FROUND_CEIL_NOEXC Round using Ceiling function and suppressing exceptions
FROUND_TRUNC_NOEXC Round by truncating and suppressing exceptions
FROUND_RINT_NOEXC Round using MXCSR.RC and suppressing exceptions