-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Response<double> get error when got int #691
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
hellow! is Dio alive? |
I just changed my code based on the http library to dio. Under http, doubles with a precision of 0 like 153.000000 were correctly created as a double type per the dart standard, but in dio, any whole number double is instead converted to an integer. This violates the way doubles are supposed to work in Flutter/Dart and your json parser needs to be fixed to handle whole number doubles correctly. |
Hello i got an error that Dio cannot cast integer numbers to double, in this end-point its supposed to return only float numbers. but he returns to integers :( this code was generated by retrofit and the author said to post here, because he don't want to make any changes on the generator.
The error occurs the respose is assigned.
New Issue Checklist
Issue Info
The text was updated successfully, but these errors were encountered: