daveconor 1 Posted September 2, 2013 Report Share Posted September 2, 2013 Trying to figure out how to increment ex: 35.66 to 35.67 Thanks, hope I'm not asking much Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted September 2, 2013 Report Share Posted September 2, 2013 ui text box("type amount", #amount)ui stat monitor("result:", #conversion)set(#conversion1, $multiply(#amount, 100), "Global")increment(#conversion1)set(#conversion, $divide(#conversion1, 100), "Global") one way... Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted September 2, 2013 Report Share Posted September 2, 2013 set(#result2, $divide($add($multiply(35.01, 100), 1), 100), "Global") Or ui text box("amount2:", #amount2)ui stat monitor("result2", #result2)set(#conv1, $multiply(#amount2, 100), "Global")loop(105) { increment(#conv1)}set(#result2, $divide(#conv1, 100), "Global") Quote Link to post Share on other sites
Sanjeev 46 Posted September 2, 2013 Report Share Posted September 2, 2013 Another Way ? set(#decimal number, "35.66 ", "Global") set(#decimal number, $add(#decimal number, .01), "Global") 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.