News for hackers. Stuff that matters.
Re:Wirecard files for insolvency after financial hole laid bare by kyrra on Thursday June 25, 2020 @09:36AM (#23640555)
(googler, opinion my own)

Just go give 2 ways of doing money storage in ints from Google's APIs...

For Google's Standard Payments APIs, we use micros: https://developers.google.com/standard-payments/v1/fops/bank...

> To represent a monetary value in micros, multiply the standard currency value by 1,000,000.

> USD$1.23 = 1230000 micro USD

Sadly, its different than other parts of Google with money/amount based APIs. GCP uses units + nanos: https://cloud.google.com/billing/v1/how-tos/catalog-api

> [UNITS] is the whole units of the amount. For example if currencyCode is "USD", then 1 unit is one US dollar.

> [NANOS] is the number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If units is positive, nanos must be positive or zero. If units is zero, nanos can be positive, zero, or negative. If units is negative, nanos must be negative or zero. For example $-1.75 is represented as units=-1 and nanos=-750,000,000.

Re:Wirecard files for insolvency after financial hole laid bare by nitrogen on Thursday June 25, 2020 @10:53AM (#23641441)
From reading other comments it seems that "micros" aren't precise enough to represent one satoshi if the unit is whole bitcoin.