Who wrote that code? I wouldn’t believe anything he says!Steve Howerton wrote: . . . Compound interest
https://coderanch.com/forums/posts/preList/552780/2507967
BigDecimal . RoundingMode and MathContext
Stephan van Hulst wrote:Do NOT use floating point values to store money. Never. Ever. Hit yourself with a stick when you try doing it.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Steve Howerton wrote:In my Apache derby db I set up Decimal data types like this:I use JFormattedTextFields to filter decimal usage in text fields concerning money
Like admin pay rate would be 150.00: this is good.
In the JFormattedTextField it will allow 1,000.00 but the db crashes when this
Decimal is presented.
Will I have to change the db data type ?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Rob Spoor wrote:Except maybe Zimbabwean dollars; the difference between 100 and 1000 was so small you wouldn't even notice
Campbell Ritchie wrote:Oh, I forgot. Zimbabwean dollars don’t have absolute values. They shrink as you watch. Sorry for the mistake.
All of life is a contant education - Eleanor Roosevelt. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|