Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Not sure if this currency pattern suggestion is of any help? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
We should not try to copy all of Open Document Spreadsheet Data Types. Could be made an extension instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A currency is a special type which can not be represented with a floating-point literal since you require exact storage and calculations. i.e. in PostgreSQL you have the type numeric to store them. To store such types, you usually use two integers, one for the integer part, and other one for the decimal part.
By that reason, I suggest to create a new type so people don't get confused by relating a numeric type of decimal representation with a currency.
Also, for the lexical representation, could be used the code alpha (like "USD" to USA dollar) followed of the decimal representation.
http://www.currency-iso.org/en/home/tables.html
Beta Was this translation helpful? Give feedback.
All reactions