【发布时间】:2022-01-26 07:05:22
【问题描述】:
我正在尝试将字符串转换为小数点后两位的小数
_accountStatementStore.totalIn = "100";
Text(
"${double.parse(_accountStatementStore.totalIn!)}",
style: TextStyle(
fontSize: 16.0,
fontWeight: FontWeight.normal,
color: Colors.green[700]),
),
结果是 100.0
我怎样才能达到100.00?
【问题讨论】:
-
这篇文章或许能为您指明正确的方向:stackoverflow.com/questions/28419255/…