AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# ISearchResult.GetFieldAsFloat Method

Gets the value of the specified `Field` as a `float`.

float GetFieldAsFloat(
Field field
);

#### Parameters

field
  The `Field` to evaluate.

#### Return Value

The `float` value of the field.

#### Remarks

Note: Numbers are converted in the search server to a `float`; specifically, properties stored as `double` in the portal are rounded to a `float`.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | The field is not present in this ISearchResult.
InvalidCastException | The value of the field is not of type float or the value is null. Use `GetFieldAsObject()` to check if the value is null.

#### See Also

ISearchResult Interface | Plumtree.Remote.PRC.Search Namespace