How can I put a dot between a number?

0 favourites
  • 12 posts
From the Asset Store
Connect the dots in the correct order and complete the shapes!
  • Hello. You can tell me to search the forum for this problem, but believe me I did. But I could not find what I was looking for in any subject.

    Isn't there really an easy way to make the number 10500 look like 10,500?

  • Easy way

    But the number is always 5 digits?

  • set text to mid(str(variable1),0,2)&","&mid(str(variable1),2,3)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • a more general purpose way would be to use regex, although it looks pretty scary and gets complicated if you also want many decimal places...

    see this thread from several years ago:

    https://www.construct.net/en/forum/construct-2/how-do-i-18/help-formating-numbers-commas-114567?kws=regex

  • Easy way

    But the number is always 5 digits?

    no. I want to add money feature. but it's hard to read

  • > Easy way

    >

    >

    >

    >

    > But the number is always 5 digits?

    no. I want to add money feature. but it's hard to read

    It is very sad that there is nothing to do this automatically. It should definitely be in a program like Construct. I have looked at this issue but I cannot understand :( all I want to do is an easy to read money ...

  • set text to mid(str(variable1),0,2)&","&mid(str(variable1),2,3)

    What will I do with more digits?

  • > > Easy way

    > >

    > >

    > >

    > >

    > > But the number is always 5 digits?

    >

    > no. I want to add money feature. but it's hard to read

    It is very sad that there is nothing to do this automatically. It should definitely be in a program like Construct. I have looked at this issue but I cannot understand :( all I want to do is an easy to read money ...

    You want to read money.

    But how you want to read money?

    1.500 or 1.500.00 ? You want to include and cents?

    Or you want to add a dot to the last 3 digits?

  • Check that

  • > > > Easy way

    > > >

    > > >

    > > >

    > > >

    > > > But the number is always 5 digits?

    > >

    > > no. I want to add money feature. but it's hard to read

    >

    > It is very sad that there is nothing to do this automatically. It should definitely be in a program like Construct. I have looked at this issue but I cannot understand :( all I want to do is an easy to read money ...

    You want to read money.

    But how you want to read money?

    1.500 or 1.500.00 ? You want to include and cents?

    Or you want to add a dot to the last 3 digits?

    $ 1.500 $ 1.800.548 $ 102.001.154

    I want like

    my english is bad so sorry

  • Ok, I dont think so you can make that by change the variables number.

    You have to change how the number looks like by changing the text.

    Changing the text does not matter of what number you have , suppost you have $1000 and you add $5500 the variable go to $6500 at anyway , now you have to to edit how the text will show that.

    We gave you some examples allready.

    You have to check whenever the number is 5 6 7 8 etc digit and use the examples.

    Here is an example can show 999.999.999 if you want billion you have to add another line of code.

    dropbox.com/s/glasvtlszz0o4rk/dot.c3p

  • Ok, I dont think so you can make that by change the variables number.

    You have to change how the number looks like by changing the text.

    Changing the text does not matter of what number you have , suppost you have $1000 and you add $5500 the variable go to $6500 at anyway , now you have to to edit how the text will show that.

    We gave you some examples allready.

    You have to check whenever the number is 5 6 7 8 etc digit and use the examples.

    Here is an example can show 999.999.999 if you want billion you have to add another line of code.

    https://www.dropbox.com/s/glasvtlszz0o4rk/dot.c3p?dl=0

    thank you I thought of doing this but didn't know how to check how many digits the money was. I learned thanks to you. Thank you again

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)