-
Notifications
You must be signed in to change notification settings - Fork 733
Decimal number #3120
Comments
Thank you @Muhmad-hamdi for raising Issue #3120! 🚀 Tagging @ILIYANGERMANOV for review & approval 👀 |
Add a setting whether to show the ".00" decimal numbers or not. Decimal numbers should be should by default unless explicitly disabled. @Muhmad-hamdi please add more info - for example do you want to show "1233.XX"? |
yes i want to add a setting whether to show the ".00" decimal numbers or not
…On Thu, Apr 11, 2024 at 9:32 AM Iliyan Germanov ***@***.***> wrote:
Add a setting whether to show the ".00" decimal numbers or not. Decimal
numbers should be should by default unless explicitly disabled.
@Muhmad-hamdi <https://github.com/Muhmad-hamdi> please add more info -
for example do you want to show "1233.XX"?
—
Reply to this email directly, view it on GitHub
<#3120 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZT3DHXMIFQWEMIJCG5AN43Y4Y4CJAVCNFSM6AAAAABGBWL5D2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBZGEYDCNZWGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
It should reflect in all values right? |
Yes
…On Sun, Apr 14, 2024, 10:47 AM Karanam Sandeep ***@***.***> wrote:
It should reflect in all values right?
—
Reply to this email directly, view it on GitHub
<#3120 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZT3DHVWJPUKPATZT3IVNWTY5I7DRAVCNFSM6AAAAABGBWL5D2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJTHE3DSOJTGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@sandeepjak2007 make sure that the current behavior isn't broken in any way and that performance isn't affected. If that's not possible we ca skip implementing this setting. Also check the |
Once will make changes and will check once then only try to push the changes |
I'm on it |
Thank you for your interest @shamim-emon! 🎉 If you don't want to work on it now, please un-assign yourself so other contributors can take it. Also, make sure to read our Contribution Guidelines. |
@ILIYANGERMANOV
|
No, no. This change must be done in |
The data layer must always return the true values. This is an UI feature that applies different formatting. Also centralizing all formatting in one usecase will be awesome. See how I did it for formatting date and time |
Ok |
@ILIYANGERMANOV want to share my current approach with this.
Let me know your, comment/suggestion and/or let me know if I got anything wrong. |
We have use-cases both in
No no, formatting is an action of transforming domain data (Double, Instant etc) into String. It must have one method:
Now that we have the class FormatMoneyUseCase @Inject constructor(
private val feature: Features
) {
//...
} Once we have the |
@shamim-emon and there is no rounding or Int calls anywhere, instead use
Read the decimal format docs or even better ask ChatGPT for appropriate DecimalFormat for India. The decimal format will take care of the rounding |
@ILIYANGERMANOV |
Yes, sounds good. Make it suspend operation.
Looks good, too! |
@ILIYANGERMANOV I'm currently working on the task. I haven't found any solution yet on this. |
@shamim-emon raise a PR, you've probably setup something incorrectly. Mockk should work. Also, try running the entire test file from Android Studio instead of an individual test |
@ILIYANGERMANOV I have tried running entire test file and same issue. |
Please confirm the following:
What do you want to be added or improved?
As a user I want to make it optional to show decimal number or not.
I don't like numbers like this 2500.00
Why do you need it?
How do you imagine it?
No response
The text was updated successfully, but these errors were encountered: