Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    How to check if an input is a str int or an float

    Help
    2
    3
    165
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      petermeisenstein F last edited by

      I dont have to say for what i need this :)

      1 Reply Last reply Reply Quote 0
      • mario.bodemann
        mario.bodemann F last edited by

        Hey,

        There is no built in solution for it yet, afaik. You would need to loop through the string and decide for every character what it is.

        You could use the tokenizer to find out: a float is a number with a dot, a int is a number and a string us everything between quotes...

        https://fuzearena.com/help/view/chrVal
        https://fuzearena.com/forum/topic/70/hints-and-tips/10

        P 1 Reply Last reply Reply Quote 1
        • P
          petermeisenstein F @mario.bodemann last edited by

          @mario-bodemann Thanks so much

          1 Reply Last reply Reply Quote 0
          • First post
            Last post