Closed juanpabloaj closed 3 years ago
Hi @juanpabloaj
Thank you very much for another PR :+1: I think this time, this change is not required but probably it could be more explicitly said inside the book that Decimal works fine with strings :thinking:
I understand why budget
would be a float value for currencies like BTC but it could be set as a string, then you don't need to convert it to the Decimal struct to use it in calculations.
I don't understand why would you set chunks
as float value though? chunks
represent the number of chunks (processes) that the budget will be divided into - could you please explain?
I understand why budget would be a float value for currencies like BTC but it could be set as a string, then you don't need to convert it to the Decimal struct to use it in calculations.
I agree.
I don't understand why would you set chunks as float value though? chunks represent the number of chunks (processes) that the budget will be divided into - could you please explain?
My mistake, I agree, chunks don't require to be Decimal.
To try to avoid this error.
When your budget is in bitcoins your budget could be float.