You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[√] Flutter (Channel stable, 3.19.0, on Microsoft Windows [版本 10.0.22000.2538], locale zh-CN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2019 16.11.5)
[√] Android Studio (version 2022.2)
[√] Android Studio (version 2022.3)
[√] Android Studio (version 2023.1)
[√] VS Code (version 1.85.2)
[√] Connected device (4 available)
[√] Network resources
Package
dio
Version
5.4.1
Operating-System
Windows
Output of
flutter doctor -v
Dart Version
No response
Steps to Reproduce
//java
double javaValue = "1.05555046E9";
//dart
double dartValue = double.parse(javaValue);
print(dartValue); // 输出:1055550460.0
如何在dio中修复这种科学计数法转换问题
Decimal.parse(javaValue)
Expected Result
1.05555046
Actual Result
1055550460.0
The text was updated successfully, but these errors were encountered: