Num -package:haha package:hledger

Find the number of digits of an Int.
Parse a string representation of a number for its value and display attributes. Some international number formats are accepted, eg either period or comma may be used for the decimal mark, and the other of these may be used for separating digit groups in the integer part. See http://en.wikipedia.org/wiki/Decimal_separator for more examples. This returns: the parsed numeric value, the precision (number of digits seen following the decimal mark), the decimal mark character used if any, and the digit group style if any.
Create a version flag triggered by --numeric-version.
Replace any numeric flags (eg -2) with their long form (--depth 2), as I'm guessing cmdargs doesn't support this directly.
Nd: Number, Decimal
Nl: Number, Letter
No: Number, Other
the number of postings to this account
Interpret a raw number as a decimal number. Returns: - the decimal number - the precision (number of digits after the decimal point) - the decimal point character, if any - the digit group style, if any (digit group character and sizes of digit groups)
Returns the number of Haskell threads that can run truly simultaneously (on separate physical processors) at any given time. To change this value, use setNumCapabilities.
Selects alphabetic or numeric Unicode characters. Note that numeric digits outside the ASCII range, as well as numeric characters which aren't digits, are selected by this function but not by isDigit. Such characters may be part of identifiers but are not used by the printer and reader to represent numbers.
Selects Unicode numeric characters, including digits from various scripts, Roman numerals, et cetera. This function returns True if its argument has one of the following GeneralCategorys, or False otherwise: These classes are defined in the Unicode Character Database, part of the Unicode standard. The same document defines what is and is not a "Number".

Examples

Basic usage:
>>> isNumber 'a'
False

>>> isNumber '%'
False

>>> isNumber '3'
True
ASCII '0' through '9' are all numbers:
>>> and $ map isNumber ['0'..'9']
True
Unicode Roman numerals are "numbers" as well:
>>> isNumber 'Ⅸ'
True
Number (set the tindex field) this journal's transactions, counting upward from 1.
Renumber all the account declarations. This is useful to call when finalising or concatenating Journals, to give account declarations a total order across files.
Parse and interpret the structure of a number without external hints. Numbers are digit strings, possibly separated into digit groups by one of two types of separators. (1) Numbers may optionally have a decimal mark, which may be either a period or comma. (2) Numbers may optionally contain digit group marks, which must all be either a period, a comma, or a space. It is our task to deduce the characters used as decimal mark and digit group mark, based on the allowed syntax. For instance, we make use of the fact that a decimal mark can occur at most once and must be to the right of all digit group marks.
>>> parseTest rawnumberp "1,234,567.89"
Right (WithSeparators ',' ["1","234","567"] (Just ('.',"89")))

>>> parseTest rawnumberp "1,000"
Left (AmbiguousNumber "1" ',' "000")

>>> parseTest rawnumberp "1 000"
Right (WithSeparators ' ' ["1","000"] Nothing)
Set the number of Haskell threads that can run truly simultaneously (on separate physical processors) at any given time. The number passed to forkOn is interpreted modulo this value. The initial value is given by the +RTS -N runtime flag. This is also the number of threads that will participate in parallel garbage collection. It is strongly recommended that the number of capabilities is not set larger than the number of physical processor cores, and it may often be beneficial to leave one or more cores free to avoid contention with other processes in the machine.