Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • This allows nonpositive integers. Commented Jul 30, 2015 at 21:20
  • 2
    It also allows you to check for them with normal numeric comparison. (< (cl-parse-integer "23K" :junk-allowed t) 0) Commented Jul 30, 2015 at 21:31
  • @Gilles yes, but I assumed it to be trivial to write. I doubt there's a specialized function for positive integers only (and probably if there was one, zero would be still treated as positive). Commented Jul 31, 2015 at 9:53