Prevent Maths from Variable Set action to trimm ceros if Max Rounding Digits is bigger than the result
Hello Joao,
I would like to request something related to maths if possible for the next release(s).
Currently, when doing Maths using the 'Variable Set' action, regardless of what is set to the desired decimal places, Tasker deletes all the 'ceros' (#: 0) behind the number automatically, if any. I mean...
If a given math operation gives '0.03350000' as a result, configuring Max Rounding Digits to 8, Tasker takes all the remaining ceros out, and shows the result as '0.0335', instead of the value I would like to be shown: '0.03350000'.
Example of the above, using one of my projects to get balances, where I want to show a high presicion notation for coins: https://i.imgur.com/yq1ZAJG.jpg / https://i.imgur.com/TuijcPw.jpg
As you can see (pics above), the result is trimmed if there are some ceros at the end of the number, even setting to round and show up to 8 decimals.
So, I assume this is a good idea because you don't want to show a result with ceros that are not needed, but I think would be useful to allow the action to add the remaining ceros if the Max Rounding Digits is bigger than the actual given result (I would like that). Otherwise, I need to implement many IFs conditions (or loops) to add the remaining ceros that are left to have a total length of 8 decimals.
Thank you.