numbers
Class BootStrapFloat
java.lang.Object
|
+--numbers.BootStrapFloat
- All Implemented Interfaces:
- NumberBootStrapper
- public class BootStrapFloat
- extends java.lang.Object
- implements NumberBootStrapper
|
Field Summary |
private double |
value1
|
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
value1
private double value1
BootStrapFloat
public BootStrapFloat()
BootStrapFloat
public BootStrapFloat(double val)
getCommunication
public ACommunication getCommunication(TreeNode command)
- Description copied from interface:
NumberBootStrapper
- This is the abstract method that any piece of this type of intelligent data must override.
It takes the root of an instruction tree and returns an ACommunication object whose execute method should preform the
tasks described in the tree.
- Specified by:
getCommunication in interface NumberBootStrapper
getValue
public double getValue()
doubleValue
public double doubleValue()
add
public void add(BootStrapFloat other)
subtract
public void subtract(BootStrapFloat other)
multiply
public void multiply(BootStrapFloat other)
devide
public void devide(BootStrapFloat other)
pow
public void pow(BootStrapFloat other)
round
public static BootStrapFloat round(double value,
int decimal)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object