Skip to main content

TdxSpreadSheetCell.AsFloat Property

Specifies the cell object’s floating point value.

Declaration

property AsFloat: Double read; write;

Property Value

Type
Double

Remarks

You can use this property to:

  • Assign a new floating point value to the cell object (the DataType property value changes to cdtFloat as a result);

  • Read a floating point value stored in the cell object;

  • Interpret the cell object’s data as a floating point value, if possible.

The AsFloat property returns 0 if the GetAsFloat function is unable to interpret the stored cell data as a floating point value (that is, if the cell object is empty or contains a string). Use the DataType property to identify the cell object’s actual value type.

The AsFloat property is accessible via the IdxSpreadSheetCellData interface to provide uniform access to numeric cell values in ExpressSpreadSheet and ExpressQuantumGrid Views.

See Also