RoundOptions Enum
Definition
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.
public enum RoundOptions
type RoundOptions =
- Inheritance
-
RoundOptions
Fields
| Name | Value | Description |
|---|---|---|
| Up | 0 | Rounding mode to round away from zero. Android reference for 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. |
| Down | 1 | Rounding mode to round towards zero. Android reference for 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. |
| Ceiling | 2 | Rounding mode to round to a more positive number. Android reference for 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. |
| Floor | 3 | Rounding mode to round to a more negative number. Android reference for 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. |
| HalfUp | 4 | Rounding mode to round to nearest neighbor, where an equidistant value is rounded up. Android reference for 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. |
| HalfDown | 5 | Rounding mode to round to nearest neighbor, where an equidistant value is rounded down. Android reference for 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. |
| HalfEven | 6 | Rounding mode to round to nearest neighbor, where an equidistant value is rounded to the nearest even neighbor. Android reference for 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. |
| Unnecessary | 7 | Rounding mode to assert that no rounding is necessary. Android reference for 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. |
Remarks
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.