SizeRoundingBehavior¶
-
class
aws_cdk.core.
SizeRoundingBehavior
(value)¶ Bases:
enum.Enum
Rounding behaviour when converting between units of
Size
.- ExampleMetadata
infused
Example:
Size.mebibytes(2).to_kibibytes() # yields 2048 Size.kibibytes(2050).to_mebibytes(rounding=SizeRoundingBehavior.FLOOR)
Attributes
-
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.
Return even if the result is a fraction.