TF-1014: add covert bytes to gb and edit UI

This commit is contained in:
ManhNTX
2022-11-14 18:33:33 +07:00
committed by Dat H. Pham
parent b9a8e5deed
commit 3d23f3fa2d
10 changed files with 130 additions and 100 deletions
+7
View File
@@ -0,0 +1,7 @@
import 'dart:math';
class DoubleConvert {
static double bytesToGigaBytes(num bytes) {
return double.tryParse((bytes * 9.31 * pow(10, -10)).toStringAsFixed(2)) ?? 0;
}
}