|
|
|
|
|
by trollbridge
68 days ago
|
|
When writing financial software, one almost always reaches for a decimal library in that language and ends up using that instead of the language's built-in floats. (Sometimes you can use ints, but you can't once you need to do things like described above.) Overall, yes, results need to be rounded, but it's pretty much financial software 101 not to use floats. |
|