8 lines
178 B
Dart
8 lines
178 B
Dart
import 'dart:math';
|
|
|
|
class DoubleConvert {
|
|
static double bytesToGigaBytes(num bytes) {
|
|
return double.tryParse((bytes * 9.31 * pow(10, -10)).toStringAsFixed(2)) ?? 0;
|
|
}
|
|
}
|