All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org_isda_cdm.RoundingDirectionEnum.RoundingDirectionEnum.go Maven / Gradle / Ivy

There is a newer version: 6.0.0-dev.89
Show newest version
/**
 * This file is auto-generated from the ISDA Common Domain Model, do not edit.
 * Version: 6.0.0-dev.82
 */
  package RoundingDirectionEnum
  import . "org_isda_cdm"
  /**
   * The enumerated values to specify the rounding direction and precision to be used in the rounding of a number.  Used by function cdm.base.math.RoundToPrecision.
   */
  
  const (
  /**
   * A fractional number will be rounded down to the specified number of decimal places (the precision). For example, 5.29 and 5.25 rounded down to 1 decimal place are 5.2 and 5.2 respectively.
   */
  DOWN RoundingDirectionEnum = iota + 1
  /**
   * A fractional number will be rounded either up or down to the specified number of decimal places (the precision) depending on its value. For example, 5.24 would be rounded down to 5.2 and 5.25 would be rounded up to 5.3 if a precision of 1 decimal place were specified.
   */
  NEAREST RoundingDirectionEnum = iota + 1
  /**
   * A fractional number will be rounded up to the specified number of decimal places (the precision). For example, 5.21 and 5.25 rounded up to 1 decimal place are 5.3 and 5.3 respectively.
   */
  UP RoundingDirectionEnum = iota + 1
  )    




© 2015 - 2025 Weber Informatics LLC | Privacy Policy