fixed-point: Binary fixed-point arithmetic

[ data, deprecated, game, library, math, mit, numerical ] [ Propose Tags ]

This package defines a type for binary fixed-precision arithmetic. The main differences between this and Data.Fixed are that this is binary fixed-point and it's polymorphic in the underlying representation. When is this more appropriate than floating point? You'll mainly want to use this when you need to be able to represent fractional values within a bounded range. Fixed-point numbers have the advantage of uniformity in these cases. On the downside, you lose precision relative to floating point numbers as you approach zero, and you lose the ability to express very large (but imprecise) values that floating point can express. On some architectures, fixed-point arithmetic might be faster than floating-point arithmetic, but this is probably not the case on x86.

Versions [RSS] [faq],,,,,,,
Dependencies base (==4.3.*), vector (==0.7.*) [details]
License MIT
Author Jake McArthur
Maintainer Jake McArthur <>
Category Data, Game, Math, Numerical
Source repo head: darcs get
this: darcs get --tag v0.3.0.0
Uploaded by JakeMcArthur at 2011-04-25T06:59:25Z
Distributions NixOS:
Downloads 5617 total (42 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees