iI think 100 IS a magic number here.
Percentage is vastly used, but also per mille (1/1000) is often used, and basis point (1/10.000) and percentmillepercent mille (1/100.000) are used enoughtenough to have their own name.
I would change youyour function to getPerPart(value, part) and and getFromPart(value, part), maybe with a default getPerPart(value) and and getFromPart(value) witch, which use DEFAULT_PART_VALUE = 100.
alsoAlso, you may still want to write a getPercent, in thatwhich case the use of hardcoded 100 is fine.