The FILTER_VALIDATE_FLOAT filter validates a value as a float number.
The output of the code will be : -
float(12.3)