准确金额的分期付款
有什么方法可以准确计算分期付款吗?还记得这些包裹的总和就是该包裹的总价值吗?我通常会做一个循环,它会在数据库中分裂和燃烧,如果包裹数量为4,我会记录四条记录..但我想知道是否有任何方法可以将最终总和准确的零碎部分,如X = 500,P = 3
,如果我除(500 / 3)
,166.666
将给出...但结果是我希望得到如下内容:X = 500, P = 3, p1 = 150: p2 = 150, p3 = 200
图例:X = 订单价值,P = 数字地块。 , p1, p2, p3 = 地块 1, 2 和 3
请记住,订单的价值永远不会准确,我明白2598.90
、2038.80
..等。
is there any way to accurately calculate the installments? remembering that the sum of these parcels shall be the total value of the? I usually do a loop which will split and burn in the database, if the number of parcels is 4, I record four records .. but I want to know if there is any way that I can piecemeal parts that final sum is accurate, as X = 500, P = 3
, if I dividor (500 / 3)
, 166.666
will give ... but the result is that I hope to get something like: X = 500, P = 3, p¹ = 150: p² = 150, p³ = 200
Legend: X = Order Value, P = Number of Parcels. , p¹, p², p³ = parcel 1, 2 and 3
Remember, the value of the order, will never be exact, I get 2598.90
, 2038.80
.. etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我理解正确的话,这是我的猜测
If I understand you correctly, here is my guess