|
|
|
|
|
by buro9
3715 days ago
|
|
The real way is: "price": {
"amount": "1500",
"scale": 2,
"symbol": "GBP",
}
Currency has 3 properties, the amount, scale, and symbol.Amount is a string, it holds a bigint. Yes, it's a string. The value of Scale can be up to 5 but is usually 2 or 3. Symbol is the ISO code. Whenever I see a financial system that uses "amount": 15.00 I know that the system is ill-conceived. |
|