MilkBowl / VaultAPI

API Component of Vault
GNU Lesser General Public License v3.0
273 stars 109 forks source link

Vault Decimal Issue #148

Closed rishabhk571 closed 2 years ago

rishabhk571 commented 2 years ago

Hey, I need help with my currency getting beyond 2 decimal places, it's like 48.9999999999, how to fix it?

Geolykt commented 2 years ago

If your plugin is responsible for storing the economy, then you'd need to properly implement Economy#format, if your plugin displays this value, then use that method instead of formatting the balance yourself. If a foreign plugin is responsible for displaying the string and you are indeed implementing that method correctly then report it to the foreign plugin

rishabhk571 commented 2 years ago

Lol, i just used vault economy fixed placeholder and it worked