Table of Contents

TTMSFNCDataGridData.ValueToFloat Method

Safely converts a raw cell value to Double using default format settings.

API unit family: TMSFNCDataGridData Declaring type: TTMSFNCDataGridData

Overloads

Overload 1

Safely converts a raw cell value to Double using default format settings.

class function ValueToFloat(AValue: TTMSFNCDataGridCellValue): Double; overload;

Parameters

Name Description
AValue Cell value to test or convert.

Returns

The value converted to a floating-point number.

Overload 2

Safely converts a raw cell value to Double respecting locale-specific number parsing.

class function ValueToFloat(AValue: TTMSFNCDataGridCellValue; AFormatSettings: TFormatSettings): Double; overload;

Parameters

Name Description
AValue Cell value to test or convert.
AFormatSettings Format settings used for locale-sensitive parsing or formatting.

Returns

The value converted to a floating-point number.