ekmett / ekmett/intervals

Infinite floors and ceilings

Open
#22 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
27
Forks
14
PR merge metrics
No merged PRs in 30d

Description

`ceiling whole` is `179769313486231590772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356329624224137216`.

So that's one mystery solved, I guess. :)

Disregarding how the `RealFrac` instance for `Double` arrived at this particular `Integer`, should this be an exception? Is there a parameteric way to make it an exception (short of modifying the `RealFrac Double` instance)?

(Curiously `floor whole` is `negate . ceiling $ whole`, I would have guessed the whole 2's complement off-by-one thing.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.