Forms api validate float when using the Drupal FAPI and needing a float number field you have to use type textfield.  What's the best way to validate that this data is a float during hook_form_validate9)?  Is there a built in function. or do you have to do is_float()?

Thanks.
Because form input is always a string, is better to use is_numeric().

See is_float() note.