# scientific

> Numbers in scientific notation for Haskell

Source: https://talira.ai/catalog/scientific-v64f6sbp
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / math / decimal arithmetic](https://talira.ai/categories/libraries/math/decimal-arithmetic), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Bas van Dijk](https://talira.ai/orgs/bas-van-dijk.md)

scientific is a Haskell package by Bas van Dijk that provides the Scientific number type: space-efficient, arbitrary-precision numbers stored as an Integer coefficient and a base-10 exponent. It's made as the target for parsing numbers from untrusted input: it's cheaper to build than a Rational, and a number with a huge exponent such as 1e1000000000 doesn't fill memory and crash the program, while converting to Int, Double or Float uses space bounded by the target type.

## Links

- GitHub: https://github.com/basvandijk/scientific

## Problems it solves

- parse decimal numbers from untrusted JSON in Haskell without risking a crash on huge exponents
- represent exact decimal values in Haskell instead of lossy Doubles
- convert numbers with huge exponents to Int or Double in Haskell without unbounded memory use

## Features

- Scientific type: Integer coefficient with a base-10 exponent
- Safe to parse from untrusted input: huge exponents don't exhaust memory
- Cheaper to construct than Rational
- Conversions to integral and floating types with bounded space

## Limitations

- Its exponent is an Int, so numbers aren't truly arbitrary precision[^1]

## Trust

Overall: 0.39 out of 1.
Signals: maintenance 0.62, adoption 0.38, momentum 0.05, community 0.51, backing 0.30, extensibility 0.00.

- last commit 39 days ago
- 25 commits in the last 90 days
- 75 GitHub stars
- 18 contributors
- backed by Bas van Dijk

## Sources

[^1]: https://github.com/basvandijk/scientific/blob/master/scientific.cabal (checked 27 Nov 2026)
[^2]: https://github.com/basvandijk/scientific/blob/master/LICENSE (checked 27 Nov 2026)
