You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the reports, it looks like the 'cost basis' that displays at the bottom of the reports, seems to be up to 2 decimal places. Some weaker coins are values lower than that many decimal places in value.
I was just wondering, are the calculations done with the full float numbers, and its just the report that is displaying up to 2 decimal places.
If if just the display that is doing it, how would i go about changing it.
Ive tried going through the code to do with the reporting, where its converting values to display in the report to strings, i tried to change the conversation to .format which allows you to state how many decimal points to display, but the reports still have 0.000, when they should be 0.001.
The text was updated successfully, but these errors were encountered:
I'm not sure exactly where you are referring to but the calculations are done with full floats, so there's no need to worry about that. Also, I believe the numbers are you are referring to are all GBP amounts so I don't see why you would want more than 2 DP anyway.
In case you do want more DPs the quickest way is described below:
-The outputs for the lists are rounded to two decimal places using round(value, 2). This is done on line 324
-To get more decimal places change 2 to the number of decimal places you require
In the reports, it looks like the 'cost basis' that displays at the bottom of the reports, seems to be up to 2 decimal places. Some weaker coins are values lower than that many decimal places in value.
I was just wondering, are the calculations done with the full float numbers, and its just the report that is displaying up to 2 decimal places.
If if just the display that is doing it, how would i go about changing it.
Ive tried going through the code to do with the reporting, where its converting values to display in the report to strings, i tried to change the conversation to .format which allows you to state how many decimal points to display, but the reports still have 0.000, when they should be 0.001.
The text was updated successfully, but these errors were encountered: