Jump to content
UBot Underground

How to substract 2 UI variables?


Recommended Posts

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 Start

Number entered as 13.00           (actually equals 1300)

 

 

UI End

Number entered as 20.00            (actually equals 2000)

 

UI Stat Monitor: UI End - UI Start (700)

 

 

 

Does anyone have any suggestions?

Link to post
Share on other sites


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")

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...