Skip to content

Featured Replies

Hello, i adapted in my Extender the drop from Trevorj the only problem i face is when items are on group it shows this weird numbers
https://prnt.sc/EKMQqleho8Ku
when item is single it shows the % normally. Can someone guide me, some people told me it is HTML issue but i doubt it, i think something is wrong on the calculation.. it should so for example 1/100 mobs or something like that.

Edited by Vision

It has nothing to do with the html. You should not convert your number to a scientific format and instead, you should use a fixed type. For example, the value 1.521e-003 is equal to 0.001521.

 

int main() {
    double ex1 = 1.521e-003;
    cout << "Value = " << fixed << ex1 << endl;
    return 0;
}

 

Edited by melron

On 1/1/2023 at 1:40 PM, melron said:

It has nothing to do with the html. You should not convert your number to a scientific format and instead, you should use a fixed type. For example, the value 1.521e-003 is equal to 0.001521.

 

int main() {
    double ex1 = 1.521e-003;
    cout << "Value = " << fixed << ex1 << endl;
    return 0;
}

 

Thanks now i can understand whats going on! Fixed ty

  • Zake locked this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.