moneyToMajor
moneyToMajor(
value,minorScale?):number
Defined in: packages/core/src/money.ts:70
Convert Money (integer minor units) back to a major-unit number — the canonical kuruş→lira converter.
Parameters
Section titled “Parameters”minorScale?
Section titled “minorScale?”number = 2
Returns
Section titled “Returns”number
Example
Section titled “Example”import { moneyToMajor, TRY } from '@lonca/core';moneyToMajor({ amount: 19990, currency: TRY }); // 199.9 (lira)Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.