Come faccio a testare un valore float verificando che non ci siano caratteri strani ?

Grazie