Registered Member
|
Hi,
Skrooge 1.7.1 (US localization, KDE settings: currency symbol "$" group separator "," decimal (radix) separator ".") I think I've found an unexpected behavior when omitting a decimal value from a currency amount when the thousands separator is used. Skrooge displays currency values as expected, e.g. "- 1,232.14" for "a debit of one-thousand two-hundred thirty-two and fourteen one-hundredths dollars". However if I were to modify the value and leave the decimal value off and enter "- 1,232" then Skrooge would change the value open adding/modifying to "- 1.23" or "One dollar and 23 one-hundredths". Typing "- 1232" in a currency edit box produces the expected result (- 1,232.00 upon posting). The unexpected behavior arises when editing an existing value by removing the ".14" in the example and not replacing it with ".00". When entering US currency amounts, leaving off the decimal portion for even dollar amounts is an acceptable practice, especially when the dollar amount is 10 or larger. The workaround is to enter the value as "- 1232" or "- 1,232." or "- 1,232.00" instead of "- 1,232" I think Skrooge's displayed behavior here is that the decimal separator is mandatory if the thousands group delimiter is used. The expected behavior would be that "- 1232" or "- 1,232" or "1232.00" or "- 1,232.00" all should post as "- 1,232.00", i.e. the decimal separator should be optional if there is a zero decimal value. Thanks |
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]