number/parse#

Functions#

parseAxisValue()#

parseAxisValue(text, numberType): Problem | Rational

Defined in: number/parse.ts:93

The exact value text spells for an axis of numberType, surrounding white space ignored: on a fraction axis an integer, n/d, a mixed fraction a b/c or a decimal; on a float axis a decimal (0.1, .5, 1e-07); on an int axis the digits, plain or grouped by three with single spaces. Every form takes an optional sign. Any other text, a zero denominator and a decimal exponent beyond ±1000 are refused as invalid_value at [].

Parameters#

text#

string

numberType#

NumberType

Returns#

Problem | Rational