## Recommended Posts

ok, lets say i have a number like this: 376

the 3 is the dollars, and the 76 are the cents. is there an autoit function that can stick the decimal in there for me?

thanks help appriciated!

##### Share on other sites

ok, lets say i have a number like this: 376

the 3 is the dollars, and the 76 are the cents. is there an autoit function that can stick the decimal in there for me?

thanks help appriciated!

yea

```\$number1 = Inputbox("Decimal adder", "Place number below")

If Int(\$number1) then msgbox(0,"New","With decimal you have: " \$number1/100)```

Like that?

Edited by Paulie

##### Share on other sites

you know this was easy

```\$num = StringSplit("376", "")
\$dollars = ""
For \$x = 1 to \$num[0]
\$dollars = \$dollars & \$num[\$x]
If \$x = 2 Then \$dollars = \$dollars & "."
Next

MsgBox(64, "Monies are ", "\$" & \$dollars)```

8)

##### Share on other sites

thanks but entering 232 gives me 23.2 insted of 2.32. can you help me out Valuater ?

##### Share on other sites

```\$number1 = Inputbox("Decimal adder", "Place number below"

If Int(\$number1) then msgbox(0,"New","With decimal you have: " \$number1/100)```

Like that?

qq

Copycat...

##### Share on other sites

```\$Number = 232

MsgBox(0, "Result", \$Number / 100)```

Fixed syntax error + simplified Paulie .

Edited by Burrup

qq

## Create an account or sign in to comment

You need to be a member in order to leave a comment

## Create an account

Sign up for a new account in our community. It's easy!

Register a new account

×

• Wiki

• Back

• Git

## Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.