colton 13 Posted May 2, 2013 Report Share Posted May 2, 2013 I need to enter 2 variables in UI, set temp variable that is 100x the number, and substract the two temp variables. Also I need to change the decimal appearance. Example UI StartNumber entered as 13.00 (actually equals 1300) UI EndNumber entered as 20.00 (actually equals 2000) UI Stat Monitor: UI End - UI Start (700) Does anyone have any suggestions? Quote Link to post Share on other sites
Pete 121 Posted May 2, 2013 Report Share Posted May 2, 2013 ui text box("item1", #item1) ui text box("item2", #item2) set(#item1, $eval($multiply(#item1, 100)), "Global") set(#item2, $eval($multiply(#item2, 100)), "Global") set(#result, $eval($subtract(#item2, #item1)), "Global") Quote Link to post Share on other sites
colton 13 Posted May 2, 2013 Author Report Share Posted May 2, 2013 How do I subtract the two seeing that they are both strings Quote Link to post Share on other sites
Pete 121 Posted May 2, 2013 Report Share Posted May 2, 2013 just done a edit to show you Quote Link to post Share on other sites
colton 13 Posted May 2, 2013 Author Report Share Posted May 2, 2013 ah, missed that last set command. That worked perfect. thanks for help. 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.