Seniru / merchant

The repository of the transformice module merchant
Apache License 2.0
4 stars 4 forks source link

Format of Currency #10

Closed Overjoy06-Creator closed 5 years ago

Overjoy06-Creator commented 5 years ago

While testing the module out we figured currency is displayed as in scientific notation such as 2.3453545E7 We will try something to fix this issue

Seniru commented 5 years ago

We are actively finding a way to solve this. This issue is open for suggestions to solve this issue

Seniru commented 5 years ago

A new bug discovered related to this! When a player creates a job with absolutely large salary (about trillions) lua will turn them into an unpredictable number. For example I entered 99999999999999999999999999999 as the salary and lua parsed it as -693................................ (something like that) Because of this case we'll have to set a limit for the salary of a job.

Apart from this solution I m working on another solution which can convert numbers into a string which will append an affix such as "K", "M", "B" or "T" at the end of the number

For example 10000 will give 10K.

These are the only ways that we can fix this issue programmatically

Seniru commented 5 years ago

Added "help wanted" and "very important" labels because of the criticality of this bug

Seniru commented 5 years ago

Fixed the issue with the commit https://github.com/Seniru/TFM_Clicker/commit/f79e200c363b5b63cf1f2068f2d6abece90b3d43. Opened for further testing of the feature @Overjoy06-Creator