银行业可接受的舍入做法。 [英] acceptable rounding practices in banking.

查看:74
本文介绍了银行业可接受的舍入做法。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们假设所有的计算都是用十进制数据类型完成的,所以

尽可能精确。


当涉及到最后的舍入切割时一个支票支付股息

VB舍入的例子似乎是这样的


3.435 = 3.44

3.445 = 3.44


Dim decNbr1 As Decimal

Dim decNbr2 As Decimal

decNbr1 = InputBox(输入一个数字)

decNbr2 = Math.Round(decNbr1,2)

MessageBox.Show(decNbr2)


5四舍五入到最接近的偶数。但在我所有的非计算机生活中,我总是被告知5轮。这是有意义的,因为1,2,3,4(4 nbrs)

向下舍入,6,7,8,9(4 nbrs)向上舍入。所以5轮向下或向上

取决于它前面的数字是奇数还是偶数。还是

大多数人都说5回合就是这样。


所以如果银行审计员进来他会有问题的方式VB

轮次5?


这是银行的方式吗?

Lets assume all calculations are done with decimal data types so things
are as precise as possible.

When it comes to the final rounding to cut a check to pay dividends for
example in VB rounding seems to be done like this

3.435 = 3.44
3.445 = 3.44

Dim decNbr1 As Decimal
Dim decNbr2 As Decimal
decNbr1 = InputBox("Enter a number")
decNbr2 = Math.Round(decNbr1, 2)
MessageBox.Show(decNbr2)

5 is rounded to the nearest even number. But in all my non-computer
life I was always told 5 rounds up. It makes sense as 1,2,3,4 (4 nbrs)
round down and 6,7,8,9 (4 nbrs) round up. So 5 rounds down or up
depending on whether the number in front of it is odd or even. Still
most folks say 5 rounds up and that''s that.

So if a banking auditor comes in would he have a problem with the way VB
rounds 5?

Is that the way banks round?

推荐答案

cj,


这种情况​​经常被争论。我认为这就是为什么2005年版本b $ b版本现在可能更加圆润系统。


我经常在这个新闻组中询问谁正在使用银行业务舍入,我

从来没有得到任何答案。


Cor


" cj" < cj@nospam.nospamschreef in bericht

新闻:OG ************** @ TK2MSFTNGP04.phx.gbl ...
cj,

This has been argued very often. I think that it is the reason that in
version 2005 are now more rounding systems possible.

I have asked often in this newsgroup who was using the Banking rounding, I
never have got any answer.

Cor

"cj" <cj@nospam.nospamschreef in bericht
news:OG**************@TK2MSFTNGP04.phx.gbl...

让我们假设所有计算都是用十进制数据类型完成的,所以事情

尽可能精确。


当它到来时最后的四舍五入削减支票以支付股息

例如VB舍入似乎是这样做的


3.435 = 3.44

3.445 = 3.44


Dim decNbr1 As Decimal

Dim decNbr2 As Decimal

decNbr1 = InputBox(" Enter a数字")

decNbr2 = Math.Round(decNbr1,2)

MessageBox.Show(decNbr2)


5是舍入的到最近的偶数。但在我所有的非计算机生活中,我总是被告知5轮。这是有道理的,因为1,2,3,4(4 nbrs)轮下来
下降和6,7,8,9(4 nbrs)轮。所以5次向下或向上取决于

,它前面的数字是奇数还是偶数。仍然大多数人说5

四舍五入,就是这样。


因此,如果银行审计员进来,他会遇到VB方式的问题

轮次5?


这是银行的方式吗?
Lets assume all calculations are done with decimal data types so things
are as precise as possible.

When it comes to the final rounding to cut a check to pay dividends for
example in VB rounding seems to be done like this

3.435 = 3.44
3.445 = 3.44

Dim decNbr1 As Decimal
Dim decNbr2 As Decimal
decNbr1 = InputBox("Enter a number")
decNbr2 = Math.Round(decNbr1, 2)
MessageBox.Show(decNbr2)

5 is rounded to the nearest even number. But in all my non-computer life
I was always told 5 rounds up. It makes sense as 1,2,3,4 (4 nbrs) round
down and 6,7,8,9 (4 nbrs) round up. So 5 rounds down or up depending on
whether the number in front of it is odd or even. Still most folks say 5
rounds up and that''s that.

So if a banking auditor comes in would he have a problem with the way VB
rounds 5?

Is that the way banks round?



我曾希望有人在这里或者是一个财务

机构的程序员,并且可以说5被处理。肯定有一些

批准的标准。银行业必须受到高度监管。我们不能

让人被搞砸了0.5美分。


我正在研究
I had hoped someone here was or is a programmer at a financial
institution and could say how 5 is handled. Surely there is some
approved standard. Banking has got to be highly regulated. we can''t
have people being screwed out of .5 cents.

I''m working on a


40,000电话费现在由一个巨大的数字组成

不到1分钟的电话,所以所有金额都很小。我开始的

数字有3位小数。许多人认为

不正确,所以我需要计算正确的金额.035美分X .7

分钟例如= .0245所以这应该被记为.025或

..024 ???????


Cor Ligthert [MVP]写道:
40,000 telephone bill now made of an tremendous number
of less than 1 minute calls so all the amounts are quite small. The
figures I''m starting with have 3 decimal places. Many were figured
incorrectly so I''ll need to figure the correct amount .035 cents X .7
minutes for example = .0245 so should that have been billed as .025 or
..024???????

Cor Ligthert [MVP] wrote:

cj,


这经常被争论。我认为这就是为什么2005年版本b $ b版本现在可能更加圆润系统。


我经常在这个新闻组中询问谁正在使用银行业务舍入,我

从来没有得到任何答案。


Cor


" cj" < cj@nospam.nospamschreef in bericht

新闻:OG ************** @ TK2MSFTNGP04.phx.gbl ...
cj,

This has been argued very often. I think that it is the reason that in
version 2005 are now more rounding systems possible.

I have asked often in this newsgroup who was using the Banking rounding, I
never have got any answer.

Cor

"cj" <cj@nospam.nospamschreef in bericht
news:OG**************@TK2MSFTNGP04.phx.gbl...

>让我们假设所有的计算都是用十进制数据类型完成的,所以事情
尽可能精确。

当涉及到最后的舍入切割时一个支票支付红利
VB舍入的例子似乎是这样做的

3.435 = 3.44
3.445 = 3.44

Dim decNbr1 As Decimal
Dim decNbr2 As Decimal
decNbr1 = InputBox(输入一个数字)
decNbr2 = Math.Round(decNbr1,2)
MessageBox.Show(decNbr2)

5四舍五入到最接近的偶数。但在我所有的非计算机生活中,我总是被告知5轮。这是有意义的,因为1,2,3,4(4 nbrs)轮下来和6,7,8,9(4 nbrs)围绕。所以5轮向下或向上取决于
前面的数字是奇数还是偶数。还是大多数人都说5回合就是这样的。

所以如果银行审计员进来,他会对VB的方式有问题吗? br />
这是银行的方式吗?
>Lets assume all calculations are done with decimal data types so things
are as precise as possible.

When it comes to the final rounding to cut a check to pay dividends for
example in VB rounding seems to be done like this

3.435 = 3.44
3.445 = 3.44

Dim decNbr1 As Decimal
Dim decNbr2 As Decimal
decNbr1 = InputBox("Enter a number")
decNbr2 = Math.Round(decNbr1, 2)
MessageBox.Show(decNbr2)

5 is rounded to the nearest even number. But in all my non-computer life
I was always told 5 rounds up. It makes sense as 1,2,3,4 (4 nbrs) round
down and 6,7,8,9 (4 nbrs) round up. So 5 rounds down or up depending on
whether the number in front of it is odd or even. Still most folks say 5
rounds up and that''s that.

So if a banking auditor comes in would he have a problem with the way VB
rounds 5?

Is that the way banks round?



这篇关于银行业可接受的舍入做法。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆