Enum SizeRoundingBehavior
Rounding behaviour when converting between units of Size.
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum SizeRoundingBehavior
Syntax (vb)
Public Enum SizeRoundingBehavior
Remarks
ExampleMetadata: infused
Examples
Size.Mebibytes(2).ToKibibytes(); // yields 2048
Size.Kibibytes(2050).ToMebibytes(new SizeConversionOptions { Rounding = SizeRoundingBehavior.FLOOR });
Synopsis
Fields
| FAIL | Fail the conversion if the result is not an integer. |
| FLOOR | If the result is not an integer, round it to the closest integer less than the result. |
| NONE | Don't round. |
Fields
| Name | Description |
|---|---|
| FAIL | Fail the conversion if the result is not an integer. |
| FLOOR | If the result is not an integer, round it to the closest integer less than the result. |
| NONE | Don't round. |