Package cdm.base.math

Interface Rounding

All Superinterfaces:
com.rosetta.model.lib.RosettaModelObject
All Known Subinterfaces:
Rounding.RoundingBuilder
All Known Implementing Classes:
Rounding.RoundingBuilderImpl, Rounding.RoundingImpl

@RosettaDataType(value="Rounding", builder=RoundingBuilderImpl.class, version="5.30.0") @RuneDataType(value="Rounding", model="cdm", builder=RoundingBuilderImpl.class, version="5.30.0") public interface Rounding extends com.rosetta.model.lib.RosettaModelObject
Defines rounding rules and precision to be used in the rounding of a number.
Version:
5.30.0
  • Field Details

  • Method Details

    • getRoundingDirection

      RoundingDirectionEnum getRoundingDirection()
      Specifies the rounding rounding rule as up, down, or nearest.
    • getPrecision

      Integer getPrecision()
      Specifies the rounding precision in terms of a number of decimal places when the number is evaluated in decimal form (not percentage), e.g. 0.09876543 rounded to the nearest 5 decimal places is 0.0987654.
    • build

      Rounding build()
      Build Methods
      Specified by:
      build in interface com.rosetta.model.lib.RosettaModelObject
    • toBuilder

      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
    • builder

      static Rounding.RoundingBuilder builder()
    • metaData

      default com.rosetta.model.lib.meta.RosettaMetaData<? extends Rounding> metaData()
      Utility Methods
      Specified by:
      metaData in interface com.rosetta.model.lib.RosettaModelObject
    • getType

      @RuneAttribute("@type") default Class<? extends Rounding> getType()
      Specified by:
      getType in interface com.rosetta.model.lib.RosettaModelObject
    • process

      default void process(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor)
      Specified by:
      process in interface com.rosetta.model.lib.RosettaModelObject