mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-19 05:54:06 +01:00
6 lines
140 B
TypeScript
6 lines
140 B
TypeScript
function convertToSubcurrency(amount: number, factor = 100) {
|
|
return Math.round(amount * factor);
|
|
}
|
|
|
|
export default convertToSubcurrency;
|