Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Someone mentioned that you need to include a float value in the calculation for (ValueA/ValueB) * 100 to work, and I did. And it still does not work.
So what I was trying to calculate was the hit percentage from two values, "ShotsFired" and "ShotsHit".
So I added a third value called "Accuracy" as (ShotsHit / ShotsFired) * 100.
And while it wouldn't include decimals, I at the very least expect it to calculate the non-decimal value properly between 0 and 100, simply ignoring the decimals.
But this apparently bricks the calculation and it just goes from 0% to 100% to 200% etc.
Because I wanted an accurate number from the calculation, I didn't want to introduce any decimals to the values. Simply adding .0 of course does nothing.
I also tried adding a decimal of 0.1, and then deleting it at a later point before printing it, but that had the same outcome.
Still, I found a different way of doing it, and I'm happy with the results.
I had the same issue when calculating K/D, it would only go to 0, 1, 2 etc.
Taking (Kills / Deaths) it refuses to add decimals.
So I just did ((Kills+0.0001) / Deaths) and then printed it with Str$(Floor(KD( "Player" ) * 100.0) / 100.0) to only keep 2 decimals, hiding the mistake of later decimals and also keeping it at a neat 2 decimals.
A filthy work-around, but it works.