Sujet : Re: Integral types and own type definitions (was Re: Suggested method for returning a string from a C program?)
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.cDate : 26. Mar 2025, 18:58:24
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20250326103705.467@kylheku.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2025-03-26, David Brown <
david.brown@hesbynett.no> wrote:
On 26/03/2025 10:59, Keith Thompson wrote:
David Brown <david.brown@hesbynett.no> writes:
[...]
Sure. But most people have forgotten such details long ago - negative
numbers are not part of daily life (except as an indicator of how much
you owe the bank...). After all, negative numbers are not natural!
Most people understand credits and debits.
>
They do. But they understand it as "I owe the bank $100" - they don't
view it as "I have -$100 in my bank account". Even when looking at
They do if you have an overdraft. If you have a formal loan, then there
will be some positively running account representing it.
(At least in the English-speaking word, where we have debits and credits
which reverse polarity between asset versus liability type accounts.)
It would definitely make sense for a loan account to have a negative
balance which increases toward zero as it is paid off.
Then the value of your account portfolio in that bank could be
calculated simply by adding your accounts together.
Moreover, when you move money from some chequing account to the mortgage
account, it would be a transaction which contains values that add to
zero: Chequing account -300; loan account +300. Otherwise it has to be:
Checquing account: debit 300; loan account credit 300. Which means that
a "credit" is subtractive to a loan account rather than additive.
Under this system, you never see a negative unless some account is
overdrawn.
I have an accounting system for self-employment activities which works
this way rather than the debit-credit system.
The debit credit system is confusing.
For mortgaging, I deal with a bank which gets something wrong on
statements: Would you believe it, they add together the value of the
checking account, and the mortgqge account, both being positive. Then
they call that the value of your account! E.g. if you have a $5,000
balance in the checquing account, and $50,000 in the mortgage account,
they call that a value of $55,000. I wrote them an e-mail and they
acknowledged this, but nothing was done; typical bureaucracy.
They would not have made that mistake with -55,000 and 5,000.
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca