StringFixedCash returns a Swedish/Cash rounded fixed-point string. For more details see the documentation at function RoundCash.
(interval uint8)
| 1509 | // StringFixedCash returns a Swedish/Cash rounded fixed-point string. For |
| 1510 | // more details see the documentation at function RoundCash. |
| 1511 | func (d Decimal) StringFixedCash(interval uint8) string { |
| 1512 | rounded := d.RoundCash(interval) |
| 1513 | return rounded.string(false) |
| 1514 | } |
| 1515 | |
| 1516 | // Round rounds the decimal to places decimal places. |
| 1517 | // If places < 0, it will round the integer part to the nearest 10^(-places). |