./finance/hs-Decimal, Decimal arithmetic for financial applications

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.5.2nb8, Package name: hs-Decimal-0.5.2nb8, Maintainer: pkgsrc-users

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.


Required to run:
[lang/ghc88]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 9.322 KB

Version history: (Expand)


CVS history: (Expand)


   2024-04-28 14:19:25 by Masatake Daimon | Files touched by this commit (1)
Log message:
finance/hs-Decimal: Fix build with GHC 9.8

This breaks build with the currently default GHC 9.6. Please bear with me
until I switch the default compiler.
   2023-11-02 07:37:49 by Masatake Daimon | Files touched by this commit (1141)
Log message:
Revbump all Haskell after updating lang/ghc96
   2023-10-24 11:55:42 by Masatake Daimon | Files touched by this commit (1)
Log message:
finance/hs-Decimal: Fix build on GHC 9.6
   2023-10-09 06:55:01 by Masatake Daimon | Files touched by this commit (988)
Log message:
Bump Haskell packages after updating lang/ghc94
   2022-02-26 04:58:36 by Masatake Daimon | Files touched by this commit (872)
Log message:
Bump all Haskell packages after enabling "split sections" in mk/haskell.mk
   2022-02-12 09:51:00 by Masatake Daimon | Files touched by this commit (575)
Log message:
revbump after changing the default Haskell compiler
   2022-01-18 03:48:33 by Masatake Daimon | Files touched by this commit (541)
Log message:
Bump packages that depends on GHC
   2021-10-26 12:26:13 by Nia Alarie | Files touched by this commit (119)
Log message:
finance: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes