fx
API ReferenceCoreFunctions

Function: calculateInputNumber()

@aliraslan/fx


@aliraslan/fx / core / calculateInputNumber

Function: calculateInputNumber()

calculateInputNumber(input): ParsedAmount

Defined in: src/core/tokenizer.ts:167

Parses a natural-language expression into a bare { currency, amount } pair without converting currencies — the currency is whatever was detected in the input, and the amount is the raw evaluated number.

Parameters

input

string

Returns

ParsedAmount

On this page