11
This commit is contained in:
1 parent
e19463ede5
commit
b9c63d54b9
1 file changed
+8
@@ -0,0 +1,8 @@
|
||||
class AppriceTool {
|
||||
static const int _fractionDigits = 2;
|
||||
|
||||
static String fenToYuan(num? price) {
|
||||
if (price == null) return "0";
|
||||
return (price / 100).toStringAsFixed(_fractionDigits);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user