finance/hs-Decimal - The NetBSD Packages Collection

Decimal arithmetic for financial applications

Haskell-Decimal
===============

Fixed-precision decimal numbers, where the precision is carried with
the numbers at run-time.

The `Decimal` type is mainly intended for doing financial arithmetic
where the number of decimal places may not be known at compile time
(e.g. for a program that handles both Yen and Dollars) and the
application must not drop pennies on the floor.  For instance if you
have to divide $10 between three people then one of them has to get
$3.34.

The number of decimal places in a value is represented as a Word8,
allowing for up to 255 decimal places.  Functions preserve precision.
Addition and subtraction operators return a result with the precision
of the most precise argument, so 2.3 + 5.678 = 7.978. Multiplication
and division use whatever precision is necessary up to 255 decimal
places.

Build dependencies

pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

lang/ghc98 lang/ghc98

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64hs-Decimal-0.5.2nb8.tgz
NetBSD 10.0aarch64hs-Decimal-0.5.2nb8.tgz
NetBSD 10.0x86_64hs-Decimal-0.5.2nb8.tgz
NetBSD 10.0x86_64hs-Decimal-0.5.2nb8.tgz
NetBSD 10.0x86_64hs-Decimal-0.5.2nb8.tgz
NetBSD 9.0aarch64hs-Decimal-0.5.2nb8.tgz
NetBSD 9.0aarch64hs-Decimal-0.5.2nb8.tgz
NetBSD 9.0aarch64hs-Decimal-0.5.2nb8.tgz
NetBSD 9.0x86_64hs-Decimal-0.5.2nb8.tgz
NetBSD 9.0x86_64hs-Decimal-0.5.2nb8.tgz
NetBSD 9.0x86_64hs-Decimal-0.5.2nb8.tgz
NetBSD 9.3x86_64hs-Decimal-0.5.2nb8.tgz
NetBSD 9.3x86_64hs-Decimal-0.5.2nb8.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.