You can validate a number by using this simple trick. Plug the number on both inputs of Equal Numbers and if it outputs True then it's a valid number else it's either NaN or Inf.