Skip to content
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

Price should be double instead of num #81

Open
ciriousjoker opened this issue Dec 5, 2023 · 1 comment
Open

Price should be double instead of num #81

ciriousjoker opened this issue Dec 5, 2023 · 1 comment

Comments

@ciriousjoker
Copy link
Contributor

Why would you use num in Dart? I haven't encountered a case where using num made practical sense, but it especially doesn't make sense when the thing you have is already a floating point number, aka a double.

By returning num, when using the price you have to convert it back to a double even though it already is one.

CleanShot 2023-12-05 at 19 17 19@2x

@ciriousjoker
Copy link
Contributor Author

Keep in mind this is super low priority since you can just call .toDouble(), I was just wondering why that decision was made in the first place.

However, please don't waste resources on this until the crashes are fixed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant