formatSignedSompiToKas
@hardkas/core / formatSignedSompiToKas
Function: formatSignedSompiToKas()
formatSignedSompiToKas(
sompi):string
Defined in: packages/core/src/money.ts:121
Formats a signed sompi amount into a KAS decimal string. This is meant ONLY for reporting deltas, audit statements, or rendering logic. It is NOT intended for validating spendable balances or user input amounts.
Parameters
sompi
string | bigint
The sompi amount as a signed bigint or string representation of a bigint.
Returns
string
The KAS amount as a string (with a leading '-' if negative).