Jump to content
  • 0

ShowDrop


HowardStern

Question

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0
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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...