com.omnipilot.lassopro
Class DecimalValue

java.lang.Object
  extended byjava.lang.Number
      extended bycom.omnipilot.lassopro.DecimalValue
All Implemented Interfaces:
java.io.Serializable

public class DecimalValue
extends java.lang.Number

Wrapper for a primitive type float or double. Used for returning decimal values from LassoCall.typeGetDecimal method.

	DecimalValue f = new DecimalValue();
	if ( lasso.typeGetDecimal( newQuote, f ) == ERR_NOERR ) {
	    lasso.outputTagData( "'AAPL': " + f.toString() );
	}
 	

See Also:
Serialized Form

Constructor Summary
DecimalValue()
           
DecimalValue(double value)
           
DecimalValue(float value)
           
 
Method Summary
 byte byteValue()
          Returns the value of this object as a byte.
 double doubleValue()
          Returns the value of this DecimalValue as a double.
 float floatValue()
          Returns the value of this DecimalValue as a float.
 int intValue()
          Returns the value of this object as an int.
 long longValue()
          Returns the value of this object as a long.
 void setDouble(double value)
           
 void setFloat(float value)
           
 short shortValue()
          Returns the value of this object as a short.
 java.lang.String toString()
          Converts the object to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DecimalValue

public DecimalValue()

DecimalValue

public DecimalValue(float value)

DecimalValue

public DecimalValue(double value)
Method Detail

toString

public java.lang.String toString()
Converts the object to a string.


byteValue

public byte byteValue()
Returns the value of this object as a byte.


shortValue

public short shortValue()
Returns the value of this object as a short.


intValue

public int intValue()
Returns the value of this object as an int.


longValue

public long longValue()
Returns the value of this object as a long.


floatValue

public float floatValue()
Returns the value of this DecimalValue as a float.


doubleValue

public double doubleValue()
Returns the value of this DecimalValue as a double.


setFloat

public void setFloat(float value)

setDouble

public void setDouble(double value)