moneysplit

版本 1.1.0.0 (1.6 KB) 作者: John T. McCarthy
Divide a sum of money in a certain ratio, making sure that the amounts add up exactly to the total.
443.0 次下载
更新时间 2009/6/2

查看许可证

EXAMPLE: y = moneysplit(3679.02,[100 100 200])
---> [919.75 919.76 1839.51]

PURPOSE: When sums of money are divided, and when the dividend amounts have been rounded to the nearest cent, they may not add up exactly to the total. It is then necessary to look at further decimal places, in order to find 'the best candidates' to change.

This function performs the task, and makes sure that the smaller amounts add up exactly to the total. This is no 'rocket science' program, but it can be of help in filling in expense accounts, and also in the subdivision of share-lots for a tax return.

引用格式

John T. McCarthy (2024). moneysplit (https://www.mathworks.com/matlabcentral/fileexchange/24312-moneysplit), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2006a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Financial Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

revised tags

1.0.0.0