Like so.
    
    
    import strutils
    
    proc isNumber(x: string): bool =
      try:
        discard parseInt(x)
        result = true
      except ValueError:
        result = false
    
    
    Run

There are many other ways. 

Reply via email to