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

IdxSpreadSheetCellData.GetAsFloat Method

Returns the stored cell data as a floating point value.

#Declaration

Delphi
function GetAsFloat: Double;

#Returns

Type
Double

#Remarks

Call this function to obtain a numeric cell value (that is, integer, date/time, currency) as a floating point value. If the GetAsFloat function returns 0 if unable to interpret the stored cell data as a floating point value.

Call the IsNumericValue function to identify if the stored cell data is a numeric. To clarify which actual type the numeric value has, call the GetDataType function.

The GetAsFloat function is a getter of the AsFloat property.

See Also