Module ieee754java

Interface FloatingFactory<T extends Floating<T>>


public interface FloatingFactory<T extends Floating<T>>
This class is used to create new Floating objects
Author:
Thomas Kasper
  • Method Details

    • create

      T create(int signum, FloatingType type)
      Creates a new Floating
      Parameters:
      signum - the signum (either -1, 0, or 1)
      type - the type
      Returns:
      the new Binary
    • create

      T create(int signum, BigDecimal value)
      Creates a new Floating.

      The primary use of this function is for creating signed zeros. In all other cases, create(BigDecimal) should be preferred.

      Parameters:
      signum - the signum (either -1, 0, or 1)
      value - the value
      Returns:
      the new Binary
    • create

      default T create(BigDecimal value)
      Creates a new Floating
      Parameters:
      value - the value
      Returns:
      the new Binary
    • create

      default T create(Number value)
      Creates a new Floating.
      Parameters:
      value - the value
      Returns:
      the new Binary