This commit is contained in:
dzc committed 2025-03-12 19:39:45 +08:00
1 parent e19463ede5
commit b9c63d54b9
1 file changed
+8
+8
View File
@@ -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);
}
}