org.apache.poi.hssf.record.formula
public final class: NumberPtg [javadoc |
source]
java.lang.Object
org.apache.poi.hssf.record.formula.Ptg
org.apache.poi.hssf.record.formula.ScalarConstantPtg
org.apache.poi.hssf.record.formula.NumberPtg
All Implemented Interfaces:
Cloneable
Number
Stores a floating point value in a formula
value stored in a 8 byte field using IEEE notation
- author:
Avik - Sengupta
- author:
Jason - Height (jheight at chariot dot net dot au)
| Field Summary |
|---|
| public static final int | SIZE | |
| public static final byte | sid | |
| Constructor: |
public NumberPtg(RecordInputStream in) {
field_1_value = in.readDouble();
}
Create a NumberPtg from a byte array read from disk |
public NumberPtg(String value) {
field_1_value = Double.parseDouble(value);
}
Create a NumberPtg from a string representation of the number
Number format is not checked, it is expected to be validated in the parser
that calls this method. Parameters:
value - : String representation of a floating point number
|
| Methods from org.apache.poi.hssf.record.formula.Ptg: |
|---|
|
clone, copy, createParsedExpressionTokens, createPtg, getBytes, getDefaultOperandClass, getEncodedSize, getEncodedSize, getPtgClass, getSize, isBaseToken, readTokens, serializePtgStack, serializePtgs, setClass, toDebugString, toFormulaString, toString, writeBytes |