TF-1014: add covert bytes to gb and edit UI
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user