兑换货币时使用枢轴货币是好习惯吗?
在微软文档中,他们使用枢轴货币汇率:
“货币换算功能将此类交易转换为枢轴货币,然后转换为一种或多种其他报告货币。”
但在 另一篇文章,他们演示了从任何货币直接转换为任何其他货币(跳过枢轴)。
只是好奇为什么在大多数记录的示例中,人们使用枢轴方法 - 而非枢轴方法似乎很少使用?两者有什么优点/缺点吗?
In microsoft's documention they use a pivot currency exchange rate:
"The currency conversion functionality converts such transactions into the pivot currency, and then to one or more other reporting currencies."
But in another article, they demo converting direct from any currency to any other currency (skipping the pivot).
Just curious as to why, in most documented examples, people use the pivot method - where as the non-pivot method seems less used? Is there any advantages/disadvantages of either?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过使用透视方法,您只需要跟踪该一种货币(相对于所有其他货币)的汇率,因此,如果您处理
n
种货币,那么您就有n
跟踪汇率,而不是n²-n
。存储所有
n²-n
汇率是冗余数据存储,因为您只需使用n
即可完成并使用枢轴方法计算所有货币兑换。By using the pivot method you only need to keep track of the exchange rates for that one currency (to all other currencies), so if you handle
n
currencies, you haven
exchange rates to track, rather thann²-n
.Storing all
n²-n
exchange rates is redundant data storage since you can get by with justn
and calculate all currency exchanges using the pivot method.大多数人使用基础货币或记账货币。
也就是说,您将获得与此相对应的汇率(在我的例子中为瑞士法郎)。所以美元兑瑞郎、欧元兑瑞郎等。我必须通过瑞士法郎做所有事情。
对于 30 种汇率,您可以使用 30 个货币对(包括 CHFCHF)或所有预先计算的 900 多种组合(EURUSD 和 USDEUR)
Most folk use a base or accounting currency.
That is, you'll have exchange rates against this (on my case CHF). So USDCHF, EURCHF etc. I had to do everything via CHF.
For 30 rates, you either use 30 pairs (includes CHFCHF) or all 900+ combinations precalculated (EURUSD and USDEUR)