So 1TB costs 5$,
But is it TB meaning Terabyte (so 10^12) or Tebibyte (2^40). If I trsut the notation it is Terabyte so
I'm asking because I have - the total_bytes_billed (in bytes) and want to convert to dollars.
According to the documentation, the units are gibibyte/tebibyte. The formulation is a bit confusing though, using both "gigabyte" and "gibibyte" for the same value (2^30):
Data size calculation
When you load data into BigQuery or query the data, you're charged according to the data size. Data size is calculated based on the size of each column's data type.
The size of your stored data, and the size of the data processed by your queries is calculated in gigabytes (GB), where 1 GB is 2^30 bytes. This unit of measurement is also known as a gibibyte (GiB). Similarly, 1 TB is 2^40 bytes (1,024 GB).
Note that "$5/TB" is only valid in some regions. For instance, when using europe-west1 the cost is $6/TB.
The documentation has a table listing all values per regions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With