spyrorocks Posted August 20, 2006 Posted August 20, 2006 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! [center] My Projects: Online AutoIt Compiler - AutoForum - AutoGuestbook - AutoIt Web-based Auto Installer - Pure AutoIt Zipping Functions - ConfuseGen - MindReader - P2PChat[/center]
Paulie Posted August 20, 2006 Posted August 20, 2006 (edited) 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 August 20, 2006 by Paulie
Valuater Posted August 20, 2006 Posted August 20, 2006 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)
spyrorocks Posted August 20, 2006 Author Posted August 20, 2006 thanks but entering 232 gives me 23.2 insted of 2.32. can you help me out Valuater ? [center] My Projects: Online AutoIt Compiler - AutoForum - AutoGuestbook - AutoIt Web-based Auto Installer - Pure AutoIt Zipping Functions - ConfuseGen - MindReader - P2PChat[/center]
buzz44 Posted August 20, 2006 Posted August 20, 2006 $number1 = Inputbox("Decimal adder", "Place number below" If Int($number1) then msgbox(0,"New","With decimal you have: " $number1/100) Like that? qq
buzz44 Posted August 20, 2006 Posted August 20, 2006 (edited) $Number = 232 MsgBox(0, "Result", $Number / 100)Fixed syntax error + simplified Paulie . Edited August 20, 2006 by Burrup qq
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now