Class

org.apache.daffodil.dpath

FNRoundHalfToEven1

Related Doc: package dpath

Permalink

case class FNRoundHalfToEven1(recipe: CompiledDPath, argType: Kind) extends FNOneArg with FNRoundHalfToEvenKind with Product with Serializable

The value returned is the nearest (that is, numerically closest) value to $arg that is a multiple of ten to the power of minus $precision.

If two such values are equally near (e.g. if the fractional part in $arg is exactly .500...), the function returns the one whose least significant digit is even.

This particular function expects a single argument which is a Numeric. $precision is assumed 0.

Linear Supertypes
Product, Equals, FNRoundHalfToEvenKind, FNOneArg, RecipeOpWithSubRecipes, RecipeOp, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FNRoundHalfToEven1
  2. Product
  3. Equals
  4. FNRoundHalfToEvenKind
  5. FNOneArg
  6. RecipeOpWithSubRecipes
  7. RecipeOp
  8. Serializable
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FNRoundHalfToEven1(recipe: CompiledDPath, argType: Kind)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val argType: Kind

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def compute(value: AnyRef, precision: Int): AnyRef

    Permalink

    For arguments of type xs:float and xs:double, if the argument is NaN, positive or negative zero, or positive or negative infinity, then the result is the same as the argument.

    For arguments of type xs:float and xs:double, if the argument is NaN, positive or negative zero, or positive or negative infinity, then the result is the same as the argument.

    In all other cases, the argument is cast to xs:decimal, the function is applied to this xs:decimal value, and the resulting xs:decimal is cast back to xs:float or xs:double as appropriate to form the function result.

    If the resulting xs:decimal value is zero, then positive or negative zero is returned according to the sign of the original argument.

    NOTE: Java does not appear to make a distinction between pos or neg zero.

    Definition Classes
    FNRoundHalfToEvenKind
  8. def computeValue(value: AnyRef, dstate: DState): AnyRef

    Permalink
    Definition Classes
    FNRoundHalfToEven1FNOneArg
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. val recipe: CompiledDPath

    Permalink
  17. def run(dstate: DState): Unit

    Permalink
    Definition Classes
    FNOneArgRecipeOp
  18. def subRecipes: List[CompiledDPath]

    Permalink
    Definition Classes
    RecipeOpWithSubRecipesRecipeOp
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toXML: Node

    Permalink

    default behavior is inherited and it displays a RecipeOp assuming there are no children to display.

    default behavior is inherited and it displays a RecipeOp assuming there are no children to display. Override and make it call one of the above toXML methods if there are children to display.

    Definition Classes
    FNOneArgRecipeOp
  21. def toXML(children: NodeSeq): Node

    Permalink
    Attributes
    protected
    Definition Classes
    RecipeOp
  22. def toXML(children: Node*): Node

    Permalink
    Attributes
    protected
    Definition Classes
    RecipeOp
  23. def toXML(s: String): Node

    Permalink
    Attributes
    protected
    Definition Classes
    RecipeOp
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from FNRoundHalfToEvenKind

Inherited from FNOneArg

Inherited from RecipeOpWithSubRecipes

Inherited from RecipeOp

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped