Interface ApfloatImpl

All Superinterfaces:
Serializable
All Known Implementing Classes:
DoubleApfloatImpl, FloatApfloatImpl, IntApfloatImpl, LongApfloatImpl

public interface ApfloatImpl extends Serializable
Interface for apfloat implementations. An ApfloatImpl implements all of the low-level functionality that is needed behind the high-level apfloat API.

A class implementing ApfloatImpl is not required to accept any other ApfloatImpl class as the argument than the same implementing class.

Version:
1.7.0
Author:
Mikko Tommila
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns this ApfloatImpl rounded away from zero.
    Returns this ApfloatImpl rounded towards zero.
    addOrSubtract​(ApfloatImpl x, boolean subtract)
    Add or subtract an ApfloatImpl to this object.
    int
    Compare this ApfloatImpl and another number.
    Divide this ApfloatImpl by an ApfloatImpl that is "short".
    double
    Returns the value of the this number as a double.
    long
    The number of equal digits in this ApfloatImpl and another number.
    Returns the fractional part of this ApfloatImpl.
    int
    Returns the hash code for this ApfloatImpl.
    boolean
    Tests if this number is equal to 1.
    boolean
    Returns if this ApfloatImpl is "short".
    long
    Returns the value of the this number as a long.
    Multiply this object by an ApfloatImpl.
    Returns this ApfloatImpl negated.
    long
    Returns the precision of this ApfloatImpl.
    precision​(long precision)
    Returns this ApfloatImpl with the specified precision.
    int
    Returns the radix of this ApfloatImpl.
    long
    Returns the scale of this ApfloatImpl.
    int
    Returns the signum of this ApfloatImpl.
    long
    Returns the size of the mantissa of this ApfloatImpl.
    toString​(boolean pretty)
    Convert this ApfloatImpl to String.
    void
    writeTo​(Writer out, boolean pretty)
    Print this ApfloatImpl to a stream.