mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-05 08:05:07 +00:00
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;
|
|
}
|
|
}
|