Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetCell.GetAsFloat Method

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

#Declaration

Delphi
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