formatAmountInput
function formatAmountInput(input): string | null;Defined in: format.ts:188
Writes back an amount typed in any form parseAmount accepts, for
showing next to the field (“= Rs. 150,000”): Rs., international
grouping, and paisa only when there are any (Rs. 1,234.50). Returns
null when parseAmount does; it never throws.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
input |
string |
The amount as typed |
Returns
Section titled “Returns”string | null
E.g. "Rs. 150,000" for "1.5 lakh", or null