Split a number into multiple parts with a ratio

This tool will divide a number into an arbitrary number of parts, using a provided ratio.

Credit to this page for the formula I'm using.

For example, the number 60 divided using the ratios A: 1; B: 2; C: 3; , will yeild the result A: 10; B: 20 ; C: 30 .

Calculator program

Ratio parts

Calculated ratios:

Output will appear here

Want to know how this works? The code is here.