Skip to main content

TdxSpreadSheetCell.GetAsFloat Method

Returns the cell object’s stored data as a floating point value.

Declaration

function GetAsFloat: Double; virtual;

Returns

Type
Double

Remarks

This function returns a Boolean or numeric (that is, Integer, date/time, Double, or Currency) cell value as a floating point value. The GetAsFloat function returns 0 if it is unable to interpret the stored cell data as a floating point value (if the cell object is empty or contains a string, for instance). To identify the actual type of a value within the cell object, call the GetDataType function or use the DataType property.

The GetAsFloat function is accessible via the IdxSpreadSheetCellData interface and is called internally by the ExpressSpreadSheet formula engine to obtain numeric cell values from ExpressSpreadSheet and ExpressQuantumGrid Views.

The GetAsFloat function is a getter of the AsFloat property.

See Also