Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Make calculation takes integral numbers #16

Closed
vincenthz opened this issue Nov 8, 2017 · 3 comments
Closed

Make calculation takes integral numbers #16

vincenthz opened this issue Nov 8, 2017 · 3 comments

Comments

@vincenthz
Copy link
Owner

it would be more accurate to have calculation done on floating points at the 10 or 100 picoseconds level instead of relying on Double doing the right thing related to rounding. Some calculation might still require Double convertion, but some like (min, max... don't)

@istathar
Copy link

I wrote a tiny package that uses Int64 for timestamps in nanoseconds (wraps hourglass to get nanosecond resolution timestamps from operating system, actually). You obviously don't need a dependency on my thing but fwiw Int64 works out nicely for this sort of application.
https://hackage.haskell.org/package/chronologique fwiw

@ocramz
Copy link

ocramz commented Mar 20, 2018

Hi @afcowie , chronologique looks good, does it have an issue tracker/public repo?

@istathar
Copy link

@ocramz oh, damn, sorry for the oversight. Thanks for pointing it out. Code is at https://github.com/afcowie/chronologique/. I just did a point release with the links added to the .cabal file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants