# Detecting the type of user input

**URL:** <https://discourse.julialang.org/t/detecting-the-type-of-user-input/122803>\
**Category:** New to Julia\
**Created:** [November 19, 2024, 6:43am UTC](https://discourse.julialang.org/t/detecting-the-type-of-user-input/122803 "2024-11-19T06:43:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [November 19, 2024, 6:56am UTC](https://discourse.julialang.org/t/detecting-the-type-of-user-input/122803/2 "2024-11-19T06:56:44Z")

</div>

The input you will get, will _always_ be a string.  
You can test whether it is a number using `parse` , cf. [Numbers · The Julia Language](https://docs.julialang.org/en/v1/base/numbers/#Base.parse)  
or also the thread [Type-safe conversion of strings to numbers](https://discourse.julialang.org/t/type-safe-conversion-of-strings-to-numbers/105812)

---

_[View the full topic](https://discourse.julialang.org/t/detecting-the-type-of-user-input/122803)._
