-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rounding Value #7
Comments
English Version: However, as far as I know, rounding will usually use the round-up / round-down method by referring to the number on the right. So if we pay attention, the reason number Remember, in the basic concept of rounding, the numbers 1,2,3,4 have definitely experienced round-down, and the numbers 5,6,7,8,9 have definitely been rounded up. as an example:
Maybe if possible, in the next version I will add round-up and round-down features (by ignoring the basic concept of rounding numbers). ** N.B: ** Versi Indonesia Namun, sepanjang yang saya tau, pembulatan biasanya akan menggunakan metode pembulatan ke angka terdekat (round-up/round-down) dengan mengacu pada angka disebelah kanan. Jadi bila kita perhatikan, alasan angka Ingat, pada konsep dasar pembulatan, angka 1,2,3,4 sudah pasti mengalami pembulatan round-down, dan angka 5,6,7,8,9 sudah pasti mengalami pembulatan ke-atas. sebagai contoh:
Mungkin bila memungkinkan, pada versi berikutnya akan saya tambahkan fitur round-up dan round-down (dengan mengabaikan konsep dasar pembulatan angka). N.B: |
Describe the bug
I get a problem with rounding value
To Reproduce
your sample :
FlutterMoneyFormatter fmf = FlutterMoneyFormatter(
amount: 12345678.9012345
);
and output with print(fo.compactNonSymbol); is
12.30M
My sample :
i change amount with 12355678.9012345 (change number four to five)
and output with print(fo.compactNonSymbol); is
12.40M
Expected behavior
My Expectation is
12.35
Screenshots
Smartphone (please complete the following information):
Thanks!
The text was updated successfully, but these errors were encountered: