fixed

Signed 15.16 precision fixed point arithmetic

http://github.com/ekmett/fixed

Version on this page:0.2.1.1
LTS Haskell 22.40:0.3
Stackage Nightly 2024-11-05:0.3
Latest on Hackage:0.3

See all snapshots fixed appears in

BSD-3-Clause licensed by Edward A. Kmett
Maintained by Edward A. Kmett
This version can be pinned in stack with:fixed-0.2.1.1@sha256:2a72de4cfafe7090e7743e4e0955c1c7f5d413d8f77afea7ac0b3fa1b6cce51b,867

Module documentation for 0.2.1.1

Depends on 1 package(full list with versions):
Used by 2 packages in lts-7.12(full list with versions):

fixed

Build Status

This package supplies signed fixed-precision values 15 bits above the decimal, 16 bits below.

These arise commonly in GPU applications and it is chosen to match the GLfixed specification.

Contact Information

Contributions and bug reports are welcome!

Please feel free to contact me through github or on the #haskell IRC channel on irc.freenode.net.

-Edward Kmett

Changes

0.2.1.1

  • Minor documentation improvements.
  • Require base >= 4.7 properly in the source repository as the implementation uses coerce, so it doesn’t work on GHC < 7.8. This was fixed by maintenance releases to hackage previously.

0.2.1

  • Fixed bug in signum

0.2

  • Convert to/from Double to avoid precision issues.

0.1.0.1

  • Change tested-with to admit the support window is only 7.8+ at this point due to the use of Data.Coerce

0.1

  • Initial release