coins.util
クラス FloatConst

java.lang.Object
  |
  +--coins.util.FloatConst

public abstract class FloatConst
extends java.lang.Object

..............(..............).

...................................................................................................................................... ..........................................................2......................

..............IEEE 754..............(....................)............ .................................................................................................................... ..............................................

....(........................)..................................................................................................

......................................................(*....................)
............
16..................11*5
......24*8
......53*11
x86..........6415
4......113*15


入れ子クラスの概要
static class FloatConst.RoundingMode
          .........................................
 
フィールドの概要
static FloatConst F32_0
          ........0.0
static FloatConst F32_1
          ........1.0
static FloatConst F64_0
          ........0.0
static FloatConst F64_1
          ........1.0
static FloatConst.RoundingMode ROUND_MINUS
          ..........................
static FloatConst.RoundingMode ROUND_NEAREST
          ......................
static FloatConst.RoundingMode ROUND_PLUS
          ..........................
static FloatConst.RoundingMode ROUND_ZERO
          ..........................
 
メソッドの概要
abstract  FloatConst add(FloatConst c)
          ....this+c.......................
abstract  IntConst convfi(int size, FloatConst.RoundingMode r)
          ..................................................................................... ..............................................................................
abstract  FloatConst convft(int msize, int esize)
          ................................................................................. ....................................................................
abstract  FloatConst convfx(int msize, int esize)
          .................................................................................
abstract  FloatConst div(FloatConst c)
          ....this/c.......................
abstract  double doubleValue()
          ....................double...........
abstract  boolean equals(java.lang.Object o)
          .................................................................
abstract  int esize()
          ....................... ...................................................................... ......................
abstract  float floatValue()
          ....................float...........
static FloatConst fromBigIntegerBits(int msize, int esize, java.math.BigInteger bits)
          ........................................................................................................(..................)................................................. ..............NaN..........................................................
static FloatConst fromExplicitBigIntegerBits(int msize, int esize, java.math.BigInteger bits)
          ........................................................................................................(..................)................................................. ......................0..............0............................ ......................1..............0..................1........ ..............NaN..........................................................
abstract  int hashCode()
          .........................................
abstract  int msize()
          ....................... ...................................................................... ......................
abstract  FloatConst mul(FloatConst c)
          ....this*c.......................
abstract  FloatConst neg()
          ....
abstract  FloatConst sub(FloatConst c)
          ....this-c.......................
abstract  java.math.BigDecimal toBigDecimal()
          ....................BigDecimal...............
abstract  java.math.BigInteger toBigInteger(FloatConst.RoundingMode r)
          ............................................BigInteger...............
abstract  java.math.BigInteger toBigIntegerBits()
          ..................................................(..................)..............BigInteger...............
abstract  java.lang.String toDecimalString()
          ....................10................... ................"1.25"..............
abstract  java.math.BigInteger toExplicitBigIntegerBits()
          ..................................................(..................)..............BigInteger............... ........msb....................................0........
abstract  java.lang.String toString()
          ..................................... ................"
abstract  IntConst tsteq(FloatConst c, int size)
          this==c......1................0.......................................
abstract  IntConst tstges(FloatConst c, int size)
          this>=c......1................0.......................................
abstract  IntConst tstgts(FloatConst c, int size)
          this>c......1................0.......................................
abstract  IntConst tstles(FloatConst c, int size)
          this<=c......1................0.......................................
abstract  IntConst tstlts(FloatConst c, int size)
          this<c......1................0.......................................
abstract  IntConst tstne(FloatConst c, int size)
          this!
static FloatConst valueOf(int msize, int esize, java.math.BigDecimal val)
          ................................................
static FloatConst valueOf(int msize, int esize, java.math.BigInteger val)
          ................................................
static FloatConst valueOf(int msize, int esize, double val)
          ................................................
static FloatConst valueOf(int msize, int esize, long val)
          ................................................
 
クラス java.lang.Object から継承したメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

F32_0

public static final FloatConst F32_0
........0.0


F32_1

public static final FloatConst F32_1
........1.0


F64_0

public static final FloatConst F64_0
........0.0


F64_1

public static final FloatConst F64_1
........1.0


ROUND_NEAREST

public static final FloatConst.RoundingMode ROUND_NEAREST
......................


ROUND_MINUS

public static final FloatConst.RoundingMode ROUND_MINUS
..........................


ROUND_PLUS

public static final FloatConst.RoundingMode ROUND_PLUS
..........................


ROUND_ZERO

public static final FloatConst.RoundingMode ROUND_ZERO
..........................

メソッドの詳細

valueOf

public static FloatConst valueOf(int msize,
                                 int esize,
                                 double val)
................................................(double)........................... ....................................................................

例外:
IllegalArgumentException - ..................3..1073741823..............................2..30..............

valueOf

public static FloatConst valueOf(int msize,
                                 int esize,
                                 java.math.BigDecimal val)
................................................(BigDecimal)........................... ............................................................................................................

例外:
IllegalArgumentException - ..................3..1073741823..............................2..30..............

valueOf

public static FloatConst valueOf(int msize,
                                 int esize,
                                 long val)
................................................(long)........................... ....................................................................

例外:
IllegalArgumentException - ..................3..1073741823..............................2..30..............

valueOf

public static FloatConst valueOf(int msize,
                                 int esize,
                                 java.math.BigInteger val)
................................................(bigInteger)........................... ....................................................................

例外:
IllegalArgumentException - ..................3..1073741823..............................2..30..............

fromBigIntegerBits

public static FloatConst fromBigIntegerBits(int msize,
                                            int esize,
                                            java.math.BigInteger bits)
........................................................................................................(..................)................................................. ..............NaN..........................................................

例外:
IllegalArgumentException - ..................3..1073741823..............................2..30..............

fromExplicitBigIntegerBits

public static FloatConst fromExplicitBigIntegerBits(int msize,
                                                    int esize,
                                                    java.math.BigInteger bits)
........................................................................................................(..................)................................................. ......................0..............0............................ ......................1..............0..................1........ ..............NaN..........................................................

例外:
IllegalArgumentException - ..................3..1073741823..............................2..30..............

msize

public abstract int msize()
....................... ...................................................................... ......................


esize

public abstract int esize()
....................... ...................................................................... ......................


add

public abstract FloatConst add(FloatConst c)
....this+c.......................

例外:
IllegalArgumentException - ..................................................................

sub

public abstract FloatConst sub(FloatConst c)
....this-c.......................

例外:
IllegalArgumentException - ..................................................................

mul

public abstract FloatConst mul(FloatConst c)
....this*c.......................

例外:
IllegalArgumentException - ..................................................................

div

public abstract FloatConst div(FloatConst c)
....this/c.......................

例外:
IllegalArgumentException - ..................................................................

neg

public abstract FloatConst neg()
....-this.......................


tsteq

public abstract IntConst tsteq(FloatConst c,
                               int size)
this==c......1................0.......................................

例外:
IllegalArgumentException - ..................................................................

tstne

public abstract IntConst tstne(FloatConst c,
                               int size)
this!=c......1................0.......................................

例外:
IllegalArgumentException - ..................................................................

tstlts

public abstract IntConst tstlts(FloatConst c,
                                int size)
this<c......1................0.......................................

例外:
IllegalArgumentException - ..................................................................

tstgts

public abstract IntConst tstgts(FloatConst c,
                                int size)
this>c......1................0.......................................

例外:
IllegalArgumentException - ..................................................................

tstles

public abstract IntConst tstles(FloatConst c,
                                int size)
this<=c......1................0.......................................

例外:
IllegalArgumentException - ..................................................................

tstges

public abstract IntConst tstges(FloatConst c,
                                int size)
this>=c......1................0.......................................

例外:
IllegalArgumentException - ..................................................................

convfx

public abstract FloatConst convfx(int msize,
                                  int esize)
.................................................................................

例外:
IllegalArgumentException - ..............................1073741823..............................................30..................

convft

public abstract FloatConst convft(int msize,
                                  int esize)
................................................................................. ....................................................................

例外:
IllegalArgumentException - ..................3..............................................2..............................

convfi

public abstract IntConst convfi(int size,
                                FloatConst.RoundingMode r)
..................................................................................... ..............................................................................

例外:
IllegalArgumentException - ................................NaN......

floatValue

public abstract float floatValue()
....................float...........


doubleValue

public abstract double doubleValue()
....................double...........


toBigDecimal

public abstract java.math.BigDecimal toBigDecimal()
....................BigDecimal............... BigDecimal..............(10scale*this)............................


toBigInteger

public abstract java.math.BigInteger toBigInteger(FloatConst.RoundingMode r)
............................................BigInteger...............

例外:
IllegalArgumentException - ................................NaN......

toBigIntegerBits

public abstract java.math.BigInteger toBigIntegerBits()
..................................................(..................)..............BigInteger...............


toExplicitBigIntegerBits

public abstract java.math.BigInteger toExplicitBigIntegerBits()
..................................................(..................)..............BigInteger............... ........msb....................................0........


equals

public abstract boolean equals(java.lang.Object o)
.................................................................

オーバーライド:
クラス java.lang.Object 内の equals

hashCode

public abstract int hashCode()
.........................................

オーバーライド:
クラス java.lang.Object 内の hashCode

toString

public abstract java.lang.String toString()
..................................... ................"(FloatConst F24+8 1.25)"..............

オーバーライド:
クラス java.lang.Object 内の toString

toDecimalString

public abstract java.lang.String toDecimalString()
....................10................... ................"1.25"..............