isNumChar method

bool isNumChar(
  1. int c
)

Implementation

bool isNumChar(int c) {
  if ( c == 45 ) {
    return true;
  }
  if ( c == 43 ) {
    return true;
  }
  if ( c == 46 ) {
    return true;
  }
  if ( c == 101 ) {
    return true;
  }
  if ( c == 69 ) {
    return true;
  }
  if ( c >= 48 ) {
    if ( c <= 57 ) {
      return true;
    }
  }
  return false;
}