1 эксабайт равен 1 073 741 824 гигабайтам.
Вот несколько примеров кода на разных языках программирования для преобразования эксабайтов в гигабайты:
-
Python:
exabytes = 1 gigabytes = exabytes * (1024 3) print(gigabytes) -
JavaScript:
const exabytes = 1; const gigabytes = exabytes * Math.pow(1024, 3); console.log(gigabytes); -
Java:
double exabytes = 1; double gigabytes = exabytes * Math.pow(1024, 3); System.out.println(gigabytes); -
C++:
#include <iostream> using namespace std; int main() { double exabytes = 1; double gigabytes = exabytes * pow(1024, 3); cout << gigabytes << endl; return 0; }