473,769 Members | 2,240 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Standard for financial applications specifying maximum number of decimal places?

John Bentley writes at this level:
If we think about our savings accounts then division never comes in (as far as
I can see). We deposit and withdraw exact amounts most of the time. Occasionaly
we get an interest payment. Unless the bank is cruel to its developers the
interest figure will be able to be exactly represented by a computer, something
like 4.1% as opposed to 4 1/3 %

125.78 * ' Initial Balance
04.1%
-------
5.15698 +
125.78
--------
130.93698 ' Final Balance

(If you then apply an interest payment to this then the number of decimal places
will grow.)

What, exactly is your entitlement? 130.93, 130.94, 130.9367, 130.93698?

I speculate that there is some IEEE standard for financial transactions which
says that currency amounts shall be stored to 4 decimal places, rounded
according to "banker's rounding" (which is toward the even number). So, for
example, if an interest payment yields an intermediate balance of 157.34865 this
gets *stored* in your account as 157.3486. The 0.0086 is kept there for future
rounding operations. However if you closed your account with 157.3486 in it you
will be actually handed 157.35. If you closed your account on a day with
157.3428 in it, you will get back 157.34.

Is there a standard for financial transactions which specifies a maximum number
of decimal places to which you should store currency amounts?

--


Jul 21 '05 #1
6 8330
I am sure was someone who once said 'never trust a bank'.

Firstly 'bankers rounding' is not used for financial transactions. It is
used for statistical analysis.

Secondly, although Im sure that each bank has it's own policy but all the
banks in this country round to cents based on half a cent or better is
rounded up and less than half a cent is rounded down.

In the example then amount of interest credited will be 5.16 and the
resulting balance will be 130.94.

The actual interest 'payment' is a standalone transcation and therfore is
rounded in it's own right before it is applied to your acount and therefore
you account will never have a portion of a cent in it's balance.

The will not be an IEEE standard because each country has it's own
accounting standards, and given the Enron and WorldCom fiascos it would
appear that the USA has none at all.

If, however, the calculation of the interet payment was a complex equation
then 'bankers rounnding' might be used on some of the intermediate steps
before arriving at the final anmount for the transaction.
"John Bentley" <no*****@nowher e.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
John Bentley writes at this level:
If we think about our savings accounts then division never comes in (as far as I can see). We deposit and withdraw exact amounts most of the time. Occasionaly we get an interest payment. Unless the bank is cruel to its developers the
interest figure will be able to be exactly represented by a computer, something like 4.1% as opposed to 4 1/3 %

125.78 * ' Initial Balance
04.1%
-------
5.15698 +
125.78
--------
130.93698 ' Final Balance

(If you then apply an interest payment to this then the number of decimal places will grow.)

What, exactly is your entitlement? 130.93, 130.94, 130.9367, 130.93698?

I speculate that there is some IEEE standard for financial transactions which says that currency amounts shall be stored to 4 decimal places, rounded
according to "banker's rounding" (which is toward the even number). So, for example, if an interest payment yields an intermediate balance of 157.34865 this gets *stored* in your account as 157.3486. The 0.0086 is kept there for future rounding operations. However if you closed your account with 157.3486 in it you will be actually handed 157.35. If you closed your account on a day with
157.3428 in it, you will get back 157.34.

Is there a standard for financial transactions which specifies a maximum number of decimal places to which you should store currency amounts?

--

Jul 21 '05 #2
>> John Bentley Wrote at this level

Is there a standard for financial transactions which specifies a
maximum number of decimal places to which you should store currency
amounts?

--

John Bentley wrote at this level

Many thanks for your post Stephany. Note I have joined a thread "Banker's
rounding" in alt.accounting where this issue should be best dealt with. You may
like to join in there instead of replying here. That's up to you.
-------------------------------------------------
Stephany Young wrote (at this indent level):
------------------------------------------------- Firstly 'bankers rounding' is not used for financial transactions. It
is used for statistical analysis.
I'd be happy to stand corrected but would you have some source material to back
that claim up? It could be that the term "banker's rounding" has spread amongst
programmer's like an urban myth. However, this rounding direction would make
particular sense when dealing with financial transactions.
Secondly, although Im sure that each bank has it's own policy but all
the banks in this country round to cents based on half a cent or
better is rounded up and less than half a cent is rounded down.
Are you saying there is a policy for the whole of New Zealand or Just that they
happen to follow the same rule? Is the rounding direction toward positive
infinity or away from zero?
In the example then amount of interest credited will be 5.16 and the
resulting balance will be 130.94.

The actual interest 'payment' is a standalone transcation and
therfore is rounded in it's own right before it is applied to your
acount and therefore you account will never have a portion of a cent
in it's balance.
So no partial amounts are stored. That certainly could be a standard to adopt.
(I'm agreeing, not being sarcastic)
The will not be an IEEE standard because each country has it's own
accounting standards, and given the Enron and WorldCom fiascos it
would appear that the USA has none at all.
I don't care to debate why Enron and WorldCom actually failed but if they failed
because they didn't follow a standard it doesn't follow that there is none. You
joke, I know. But I'm not clear if you are claiming that standards do exist but
only at a national level or that standards don't even exist at a national level.
If, however, the calculation of the interet payment was a complex
equation then 'bankers rounnding' might be used on some of the
intermediate steps before arriving at the final anmount for the
transaction.


It doesn't need to be complex:
12585 * ' Initial Balance
04.3% ' Interest Rate
-------
541.155 ' Intermediate Interest Payment
541.15 + ' Interest payment actually made, rounded by banker's rounding
12585
--------
13126.15 ' Final Balance

Jul 21 '05 #3
How about 25+ years experience as an Accountant along with Bachelors and
Masters Degrees with Accounting majors. Is that enough of a source?

In New Zealand, all the trading banks operate through a single clearing
point and therefore have the same rounding policies on financial
transactions.

As I said, 'bankers rounding' is not used for stand-alone finacial
transactions. Your new example is a stand-alone financial transaction and
the interest amount will be 541.16 (half cent or better goes up) and the
resulting balance 13126.16.

If the interest calclated to 541.154 then it would be rounded to 541.15 and
the balance would be 13126.16.

Now if the interest had to be pro-rata'd over a non-annual period and then
accrued to an annual amount then 'bankers rounding' might be used on the
interim steps according to the policy of the individual institution.

There is no international standard because every country has different
accounting standards.
"John Bentley" <no*****@nowher e.com> wrote in message
news:uk******** ******@TK2MSFTN GP12.phx.gbl...
John Bentley Wrote at this level

Is there a standard for financial transactions which specifies a
maximum number of decimal places to which you should store currency
amounts?

--

John Bentley wrote at this level

Many thanks for your post Stephany. Note I have joined a thread "Banker's
rounding" in alt.accounting where this issue should be best dealt with.

You may like to join in there instead of replying here. That's up to you.
-------------------------------------------------
Stephany Young wrote (at this indent level):
-------------------------------------------------
Firstly 'bankers rounding' is not used for financial transactions. It
is used for statistical analysis.


I'd be happy to stand corrected but would you have some source material to

back that claim up? It could be that the term "banker's rounding" has spread amongst programmer's like an urban myth. However, this rounding direction would make particular sense when dealing with financial transactions.
Secondly, although Im sure that each bank has it's own policy but all
the banks in this country round to cents based on half a cent or
better is rounded up and less than half a cent is rounded down.
Are you saying there is a policy for the whole of New Zealand or Just that

they happen to follow the same rule? Is the rounding direction toward positive
infinity or away from zero?
In the example then amount of interest credited will be 5.16 and the
resulting balance will be 130.94.

The actual interest 'payment' is a standalone transcation and
therfore is rounded in it's own right before it is applied to your
acount and therefore you account will never have a portion of a cent
in it's balance.
So no partial amounts are stored. That certainly could be a standard to

adopt. (I'm agreeing, not being sarcastic)
The will not be an IEEE standard because each country has it's own
accounting standards, and given the Enron and WorldCom fiascos it
would appear that the USA has none at all.
I don't care to debate why Enron and WorldCom actually failed but if they

failed because they didn't follow a standard it doesn't follow that there is none. You joke, I know. But I'm not clear if you are claiming that standards do exist but only at a national level or that standards don't even exist at a national level.
If, however, the calculation of the interet payment was a complex
equation then 'bankers rounnding' might be used on some of the
intermediate steps before arriving at the final anmount for the
transaction.


It doesn't need to be complex:
12585 * ' Initial Balance
04.3% ' Interest Rate
-------
541.155 ' Intermediate Interest Payment
541.15 + ' Interest payment actually made, rounded by banker's rounding
12585
--------
13126.15 ' Final Balance

Jul 21 '05 #4
>>>> John Bentley Wrote at this level

Is there a standard for financial transactions which specifies a
maximum number of decimal places to which you should store currency
amounts?

-- 12585 * ' Initial Balance
04.3% ' Interest Rate
-------
541.155 ' Intermediate Interest Payment
541.15 + ' Interest payment actually made, rounded by banker's
rounding 12585
--------
13126.15 ' Final Balance

-------------------------------------------------
Stephany Young wrote (at this indent level):
-------------------------------------------------
A BANKER'S ROUNDING STANDARD
In New Zealand, all the trading banks operate through a single
clearing point and therefore have the same rounding policies on
financial transactions.

As I said, 'bankers rounding' is not used for stand-alone finacial
transactions. Your new example is a stand-alone financial transaction
and the interest amount will be 541.16 (half cent or better goes up)
and the resulting balance 13126.16.

If the interest calclated to 541.154 then it would be rounded to
541.15 and the balance would be 13126.16.
It take it you mean 13126.15.

I still have: Is the rounding direction toward positive infinity or away from
zero? That is, what do you mean, or what is meant by, "up"?
ANY STANDARDS

I take your word for it that it's done in the way you describe. This is useful
to learn. However, my the enquiry, at base, is about why. Further, I only wish
to know "why" to the point of seeing where the convention, the standard, exists.

For example, in New Zealand driving is on the left. Why do people drive on the
Left, rather than the right, in New Zealand? The next level of explaination is
that there is a Law that says so (Perhaps called the "Motor Act"). I am only
after this level of explaination, for the moment, rather than: Why does the
Motor act specify that people should drive on the left?
How about 25+ years experience as an Accountant along with Bachelors
and Masters Degrees with Accounting majors. Is that enough of a
source?
And in that 25+ years experience and study did you ever come across the reason
why things where done (here rounding) the way you describe? Did you discover
that in New Zealand, for example, the reason you round in a certain way is
because there is a standard for that country? Is the standard defacto (just a
common practice) or formal (specified in a commonly known document)? If formal,
what would be the name of that standard (Some Law, or professional industry
policy)? In more recent years have you come accross the URL that points to this
standard?

I have, for example, have since discovered a Standard for the Rounding the Euro
after a currency conversion. The standard's name could be "EC law on Euro
currency conversions", the standard applies at an European level (we could write
subinternationa l), it is a formal standard, I don't know how closely it is
observed in practice.

The specific part of this standard that applies to rounding is found in "Council
Regulation (EC) No 1103/97 of 17 June 1997 on certain provisions relating to the
introduction of the euro (*)" and it's url is:

http://europa.eu.int/comm/economy_fi...e_texts/compen
dium/pdf/en_087_090_en.p df
This standard states:

"Article 5
If the application of the conversion rate gives a result
which is exactly half-way, the sum shall be
rounded up."

Which, by the way, matches with your practice in New Zealand for rounding in
general.
Now if the interest had to be pro-rata'd over a non-annual period and
then accrued to an annual amount then 'bankers rounding' might be
used on the interim steps according to the policy of the individual
institution.

There is no international standard because every country has different
accounting standards.

Again, These last two sentences require a further explaination. The last
sentence claims there is a standard at the national level. The second to last
sentence claims, that for some type of transactions, there is only an
organisation level standard applies.

Let us take the country which you may know best. Are you writing that there is a
New Zealand accounting standard but it is limited to a subset of accounting
practices (or transaction types)?
A BANKER'S ROUNDING STANDARD REVISITED

What is it about a transaction that makes it suseptible to banker's rounding? I
can't see the relevant difference between my example and yours (beginning "Now
if the interest ..."). Yes, yours is more complex. Does not my interest payment
example involve interim steps? Eg the interest payment.


Jul 21 '05 #5
I don't really know how I make this any more simple for you.

Let's take a principal of $12345.00 with interest paid annually at the rate
of 4.3%pa and assume that the interest is added to the principal.

At the end of year 1.

Principal 12345.00
Interest 530.84
New Principal 12875.84

The actual interest calculation results in 530.835 and the fraction of a
cent (being half or better) is rounded UP to the next whole cent. (Net loss
to the interest payer of $0.005)

At the end of year 2.

Principal 12875.84
Interest 553.66
New Principal 13429.50

The actual interest calculation results in 553.66122 and the fraction of a
cent (being less than half) is rounded DOWN to the previous whole cent. (Net
gain to the interest payer of $0.00122)

Over the 2 years there is a net loss to the interest payer of $0.00378.

There is no specific historical explanation as to why it is done this way
but a widely accepted explanation is that it is to err on the side of
generosity in favour of the customer. It is also widely accepted that the
accumulated losses and gains over a period of time will be negligible.

In this country there are number of 'standards'. Some standards are imposed
by the Commerce Commission by way of legislation and/or regulation and some
standards are imposed by the Inlnad Revenue Department by way of legislation
and/or regulation. Other standards are 'imposed' by the New Zealand Society
of Accountants (professional body) as best or preferred practices. I have no
interest in trawling the bookshelves to find specific references for you.

Your reference about the conversions regarding the Euro, (I assume it is
quoted correctly), appears to apply where the result of the conversion is
exacly half a cent however it implies that if the result is more than half a
cent then it is rounded UP to the next whole cent.

This is exactly what happens with stand-alone financial transctions in this
country.
"John Bentley" <no*****@nowher e.com> wrote in message
news:ec******** ******@TK2MSFTN GP12.phx.gbl...
> John Bentley Wrote at this level
>
> Is there a standard for financial transactions which specifies a
> maximum number of decimal places to which you should store currency
> amounts?
>
> --
12585 * ' Initial Balance
04.3% ' Interest Rate
-------
541.155 ' Intermediate Interest Payment
541.15 + ' Interest payment actually made, rounded by banker's
rounding 12585
--------
13126.15 ' Final Balance
-------------------------------------------------
Stephany Young wrote (at this indent level):
-------------------------------------------------


A BANKER'S ROUNDING STANDARD
In New Zealand, all the trading banks operate through a single
clearing point and therefore have the same rounding policies on
financial transactions.

As I said, 'bankers rounding' is not used for stand-alone finacial
transactions. Your new example is a stand-alone financial transaction
and the interest amount will be 541.16 (half cent or better goes up)
and the resulting balance 13126.16.

If the interest calclated to 541.154 then it would be rounded to
541.15 and the balance would be 13126.16.


It take it you mean 13126.15.

I still have: Is the rounding direction toward positive infinity or away

from zero? That is, what do you mean, or what is meant by, "up"?
ANY STANDARDS

I take your word for it that it's done in the way you describe. This is useful to learn. However, my the enquiry, at base, is about why. Further, I only wish to know "why" to the point of seeing where the convention, the standard, exists.
For example, in New Zealand driving is on the left. Why do people drive on the Left, rather than the right, in New Zealand? The next level of explaination is that there is a Law that says so (Perhaps called the "Motor Act"). I am only after this level of explaination, for the moment, rather than: Why does the Motor act specify that people should drive on the left?
How about 25+ years experience as an Accountant along with Bachelors
and Masters Degrees with Accounting majors. Is that enough of a
source?
And in that 25+ years experience and study did you ever come across the

reason why things where done (here rounding) the way you describe? Did you discover that in New Zealand, for example, the reason you round in a certain way is
because there is a standard for that country? Is the standard defacto (just a common practice) or formal (specified in a commonly known document)? If formal, what would be the name of that standard (Some Law, or professional industry policy)? In more recent years have you come accross the URL that points to this standard?

I have, for example, have since discovered a Standard for the Rounding the Euro after a currency conversion. The standard's name could be "EC law on Euro
currency conversions", the standard applies at an European level (we could write subinternationa l), it is a formal standard, I don't know how closely it is
observed in practice.

The specific part of this standard that applies to rounding is found in "Council Regulation (EC) No 1103/97 of 17 June 1997 on certain provisions relating to the introduction of the euro (*)" and it's url is:

http://europa.eu.int/comm/economy_fi...e_texts/compen dium/pdf/en_087_090_en.p df
This standard states:

"Article 5
If the application of the conversion rate gives a result
which is exactly half-way, the sum shall be
rounded up."

Which, by the way, matches with your practice in New Zealand for rounding in general.
Now if the interest had to be pro-rata'd over a non-annual period and
then accrued to an annual amount then 'bankers rounding' might be
used on the interim steps according to the policy of the individual
institution.

There is no international standard because every country has different
accounting standards.

Again, These last two sentences require a further explaination. The last
sentence claims there is a standard at the national level. The second to

last sentence claims, that for some type of transactions, there is only an
organisation level standard applies.

Let us take the country which you may know best. Are you writing that there is a New Zealand accounting standard but it is limited to a subset of accounting practices (or transaction types)?
A BANKER'S ROUNDING STANDARD REVISITED

What is it about a transaction that makes it suseptible to banker's rounding? I can't see the relevant difference between my example and yours (beginning "Now if the interest ..."). Yes, yours is more complex. Does not my interest payment example involve interim steps? Eg the interest payment.

Jul 21 '05 #6
> -------------------------------------------------
Stephany Young wrote (at this indent level):
-------------------------------------------------
I don't really know how I make this any more simple for you.
ROUNDING DIRECTION

I do know how to make it more simple for you.

I was not asking about whether, when you and your accountancy profession say
"UP", whether 0.835 goes to 0.84 or 0.83. I was asking you to remove the
ambiguity that UP has. I was asking whether this is toward postive infinity or
away from zero.

Here comes the simple part:

If you round -0.835 up, to two decimal places, which number do you get?

There is no specific historical explanation as to why it is done this
way
but a widely accepted explanation is that it is to err on the side of
generosity in favour of the customer.
Rounding up when invoicing a customer who has purchased a service would be to
err against the customer.
It is also widely accepted that
the accumulated losses and gains over a period of time will be
negligible.
If an international bank, conducting millions of transactions per day, has a
rounding scheme that errs on thier own side, then the gains will be significant.
In this country there are number of 'standards'. Some standards are
imposed
by the Commerce Commission by way of legislation and/or regulation
and some standards are imposed by the Inlnad Revenue Department by
way of legislation and/or regulation. Other standards are 'imposed'
by the New Zealand Society
of Accountants (professional body) as best or preferred practices.
Commerce Commission, Inlnad Revenue Department, New Zealand Society of
Accountants. Well at least now I have the bodies where one set of standards are
kept.
I
have no interest in trawling the bookshelves to find specific
references for you.
I am suprised that to get to the standards you would have to go to a bookstore.
I suprised that a professional account would not have the standards to which
they operate close to hand. As a non accountant I was able to get at the euro
conversion standard with only a little bit of effort.

Maybe the standards to which your profession might be so fundamental that there
is little practical need to constantly refer to them. That's fine. Surely,
though, it's clearly understood what they are, what your profession is
ultimately based on. Surely naming and accessing them is easily done. You seem
to have only a vague notion of them.

For example, as a licenced driver in Australia I don't have the driving
standards close to hand. But at one point, namely when studying for my driving
test, I did have to read and refer to them. I don't need to refer to the
standard on a daily basis in order to drive. I do, though, have in mind that my
driving behaviour and others is done according to a standard.

Here is a specification of the standard
Standard's name is: "The Australian Road Rules"
Standard's Scope (or "Level"): The Nation of Australia
Standard's Authority: "The ARRs were developed by the National Road Transport
Commission, State and Territory transport agencies, police, other organisations
and approved by a majority vote of State Transport Ministers in February 1999."
The Standard's URL:

http://www.rta.nsw.gov.au/rulesregul...austr_dl1.html

See how easy it is!

I have brought us squarely into the arena of flame. I don asbestos and await
your reply :)

Your reference about the conversions regarding the Euro, (I assume it
is
quoted correctly), appears to apply where the result of the
conversion is exacly half a cent however it implies that if the
result is more than half a cent then it is rounded UP to the next
whole cent.

This is exactly what happens with stand-alone financial transctions
in this country.
"John Bentley" <no*****@nowher e.com> wrote in message
news:ec******** ******@TK2MSFTN GP12.phx.gbl...
>> John Bentley Wrote at this level
>>
>> Is there a standard for financial transactions which specifies a
>> maximum number of decimal places to which you should store
>> currency amounts?
>>
>> --

12585 * ' Initial Balance
04.3% ' Interest Rate
-------
541.155 ' Intermediate Interest Payment
541.15 + ' Interest payment actually made, rounded by banker's
rounding 12585
--------
13126.15 ' Final Balance

-------------------------------------------------
Stephany Young wrote (at this indent level):
-------------------------------------------------


A BANKER'S ROUNDING STANDARD
In New Zealand, all the trading banks operate through a single
clearing point and therefore have the same rounding policies on
financial transactions.

As I said, 'bankers rounding' is not used for stand-alone finacial
transactions. Your new example is a stand-alone financial
transaction
and the interest amount will be 541.16 (half cent or better goes up)
and the resulting balance 13126.16.

If the interest calclated to 541.154 then it would be rounded to
541.15 and the balance would be 13126.16.


It take it you mean 13126.15.

I still have: Is the rounding direction toward positive infinity or
away

from
zero? That is, what do you mean, or what is meant by, "up"?
ANY STANDARDS

I take your word for it that it's done in the way you describe. This
is useful to learn. However, my the enquiry, at base, is about why.
Further, I only wish to know "why" to the point of seeing where the
convention, the standard, exists.

For example, in New Zealand driving is on the left. Why do people
drive on the Left, rather than the right, in New Zealand? The next
level of

explaination is
that there is a Law that says so (Perhaps called the "Motor Act"). I
am

only
after this level of explaination, for the moment, rather than: Why
does

the
Motor act specify that people should drive on the left?
How about 25+ years experience as an Accountant along with Bachelors
and Masters Degrees with Accounting majors. Is that enough of a
source?


And in that 25+ years experience and study did you ever come across
the reason why things where done (here rounding) the way you
describe? Did you

discover
that in New Zealand, for example, the reason you round in a certain
way is because there is a standard for that country? Is the standard
defacto

(just a
common practice) or formal (specified in a commonly known document)?
If formal, what would be the name of that standard (Some Law, or
professional

industry
policy)? In more recent years have you come accross the URL that
points to this standard?

I have, for example, have since discovered a Standard for the
Rounding the Euro after a currency conversion. The standard's name
could be "EC law on Euro currency conversions", the standard applies
at an European level (we could write subinternationa l), it is a
formal standard, I don't know how closely it is observed in practice.

The specific part of this standard that applies to rounding is found
in "Council Regulation (EC) No 1103/97 of 17 June 1997 on certain
provisions relating

to the
introduction of the euro (*)" and it's url is:

http://europa.eu.int/comm/economy_fi...e_texts/compen
dium/pdf/en_087_090_en.p df
This standard states:

"Article 5
If the application of the conversion rate gives a result
which is exactly half-way, the sum shall be
rounded up."

Which, by the way, matches with your practice in New Zealand for
rounding

in
general.
Now if the interest had to be pro-rata'd over a non-annual period
and
then accrued to an annual amount then 'bankers rounding' might be
used on the interim steps according to the policy of the individual
institution.

There is no international standard because every country has
different accounting standards.

Again, These last two sentences require a further explaination. The
last sentence claims there is a standard at the national level. The
second to

last
sentence claims, that for some type of transactions, there is only an
organisation level standard applies.

Let us take the country which you may know best. Are you writing that

there is a
New Zealand accounting standard but it is limited to a subset of

accounting
practices (or transaction types)?
A BANKER'S ROUNDING STANDARD REVISITED

What is it about a transaction that makes it suseptible to banker's

rounding? I
can't see the relevant difference between my example and yours
(beginning "Now if the interest ..."). Yes, yours is more complex.
Does not my interest payment example involve interim steps? Eg the
interest payment.

Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

76
3923
by: DaKoadMunky | last post by:
After having fancied myself a C++ programmer for the last nine years I figured it was about time that I actually obtain a copy of the standard rather than relying on other sources that claim to accurately represent the standard. Even the best intentioned author or newsgroup poster is capable of inaccurately representing the standard. I followed the FAQ link to http://www.techstreet.com/ and searched for 14882 as suggested. That...
9
4421
by: sr | last post by:
There is a System.Math class that is very helpful I couldn't imagine any next generation framework or language without one a Math class! What is the issue with having a System.Financial class for common financial formulas using the .net decimal datatype recommended to be used in financial calculations? The universal formulas I'm referring to are used to find payments, PV, FV, rate, and etc... exactly what is in the legacy...
6
342
by: John Bentley | last post by:
John Bentley writes at this level: If we think about our savings accounts then division never comes in (as far as I can see). We deposit and withdraw exact amounts most of the time. Occasionaly we get an interest payment. Unless the bank is cruel to its developers the interest figure will be able to be exactly represented by a computer, something like 4.1% as opposed to 4 1/3 % 125.78 * ' Initial Balance 04.1% -------
5
14724
by: Edward Hartfield | last post by:
I'm am relatively new to Python but use it daily. Today, I went looking for a function, like PHP's number_function, that will take a number and return a string with number formatted with grouped thousands and the decimal portion rounded to a given number of places. This is certainly needed when you want to take a floating-point value from a database and display it as currency, for instance. I could not find what I was looking for so I...
6
7475
by: Programador | last post by:
I'm getting this error when running this program: Cannot calculate rate using the arguments provided Module Module1 Sub Main() Rate(360, -694.44444444444446, 244274.69178082192) End Sub
6
1510
by: Hal Rosser | last post by:
From previous postings, I assume that the round method of the Math object leaves too much to chance, and should not be used. It has also been suggested that rounding be done by converting the number to string - then use string manipulation. So - with that in mind, please check the validity of the following code: // the args: n is the number to round, and x the number of places function roundNtoXplaces(n, x){ // move the decimal over x...
9
2824
by: Grizlyk | last post by:
Somebody have offered std colors to C++ in the msg here: http://groups.google.com/group/comp.lang.c++/browse_frm/thread/2e5bb3d36ece543b/1acf6cd7e3ebdbcd#1acf6cd7e3ebdbcd The main objection to the including "colors markup" is useless of the marks, the marks is unneccessary extra information. The most used way to make colored view of C++ programs is usage of classes of C++ language words (already included in C++): reserved words, user...
19
3612
by: VK | last post by:
http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/ b495b4898808fde0> is more than one month old - this may pose problem for posting over some news servers. This is why I'm starting a new one] I'd still like to finish this rounding mess. As a startup lemma we can take that VK is the worst programmer of all times and places: let's move from here forward please. The usability of any program depends on exact behavior...
4
2803
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I format a Number as a String with exactly 2 decimal places? ----------------------------------------------------------------------- When formatting money for example, to format 6.57634 to 6.58, 6.5 to 6.50, and 6 to 6.00? Rounding of x.xx5 is uncertain, as such numbers are not represented exactly. See the section on "simple decimal arithmetic"
0
9590
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9424
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10051
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10000
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3968
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.