isnum(1)

🌸 NAME 🌸

isnum β€” bestie, she just tells you if your string is a number or not, and what kind πŸ’…


✨ SYNOPSIS ✨

isnum string

πŸ’– DESCRIPTION πŸ’–

Okay so isnum is the little utility that looks at your input string and is like "mmhm, I see you πŸ‘€" and then classifies it. She hands back an integer code based on how she IDs the input number, and here's the whole tea, no cap:

  • 0 β€” string is not any sort of number, sorry bestie, it's giving "not math" 😭
  • 1 β€” String is an integer πŸ’―
  • 2 β€” String is a floating point number πŸ¦‹
  • 3 β€” String is a hh:mm:ss.ss time ⏰
  • 4 β€” String is a yyyy-mm-dd date πŸ“…

That's literally it. She identifies and classifies, and she does it in one neat little exit code. Iconic behavior, honestly.


πŸ‘‘ AUTHOR πŸ‘‘

Jessica Mink, SAO (jmink@cfa.harvard.edu) β€” the queen who made this happen 🫢


That's the whole page, babes ✨ this one came from <strong>WCSTools</strong>, dated <strong>6 November 2015</strong>, and she lives in the <strong>General Commands Manual</strong> as isnum(1). Go forth and vibe check your strings πŸ’–πŸŽ€