EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 10-16-2010, 07:19 PM
TalTal TalTal is offline
A Griffon
Featured
 
Join Date: Nov 2005
Server: Nagafen
Posts: 1,095
Default Math

I do math in game 1 * 1000000 and get 1e06. Is there any way to convert it back to 1000000?

Silat
Reply With Quote
  #2  
Unread 10-16-2010, 10:13 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Did you try wrapping it with the int() function?
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #3  
Unread 10-16-2010, 10:48 PM
TalTal TalTal is offline
A Griffon
Featured
 
Join Date: Nov 2005
Server: Nagafen
Posts: 1,095
Default

Yea. Didn't help unfortunately. I'm trying to make a deposit all coin button and it takes input in copper so I have to make plat a huge number. I tried concatenating it (platamount ## '000000') but then it acted like text instead of a number.

Silat

Edit: Skipped the math with the plat and concatenated it onto the result of the other coins and then made it deposit, which at that point does not care that it is text instead of a number. Yay!

Last edited by TalTal : 10-16-2010 at 11:00 PM.
Reply With Quote
  #4  
Unread 10-16-2010, 11:11 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Yeah was gonna say I have a deposit all coin button on my bank window, but it looks like you figured it out already.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:10 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI