Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates values returned by several types and taken as a parameter of several types.
public enum RoundOptions
type RoundOptions =
Name | Value | Description |
---|---|---|
Up | 0 | Rounding mode where positive values are rounded towards positive infinity and negative values towards negative infinity. |
Down | 1 | Rounding mode where the values are rounded towards zero. |
Ceiling | 2 | Rounding mode to round towards positive infinity. |
Floor | 3 | Rounding mode to round towards negative infinity. |
HalfUp | 4 | Rounding mode where values are rounded towards the nearest neighbor. Ties are broken by rounding up. |
HalfDown | 5 | Rounding mode where values are rounded towards the nearest neighbor. Ties are broken by rounding down. |
HalfEven | 6 | Rounding mode where values are rounded towards the nearest neighbor. Ties are broken by rounding to the even neighbor. |
Unnecessary | 7 | Rounding mode where the rounding operations throws an |
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in