You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google has a Money type based on a unit and nano representation. It is used, for example, in the Publisher API to obtain prices of base plans.
Based on a quick research this seems to be based on a fixed-point approach of representing money and, according to the provided link, it seems to be a common way to store dollars for example.
I took a look at the documentation and couldn't find any way to create a money.Money instance from this kind of representation. Do you think it would make sense to support it? I'm imagining something like:
Google has a
Money
type based on a unit and nano representation. It is used, for example, in the Publisher API to obtain prices of base plans.Based on a quick research this seems to be based on a fixed-point approach of representing money and, according to the provided link, it seems to be a common way to store dollars for example.
I took a look at the documentation and couldn't find any way to create a
money.Money
instance from this kind of representation. Do you think it would make sense to support it? I'm imagining something like:The text was updated successfully, but these errors were encountered: