Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# check if is float

public bool IsFloatOrInt(string value) {
  int intValue;
  float floatValue;
  return Int32.TryParse(value, out intValue) || float.TryParse(value, out floatValue);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #float
ADD COMMENT
Topic
Name
8+6 =