Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsecond precision #7

Open
seansawyer opened this issue Jan 17, 2012 · 4 comments
Open

Microsecond precision #7

seansawyer opened this issue Jan 17, 2012 · 4 comments
Labels
Milestone

Comments

@seansawyer
Copy link
Collaborator

This will need to be a major version bump, since the time() type will have to change to accomodate microseconds.

@Tyra-Bjurman
Copy link

I would love to see some microseconds included someday.

@oubiwann
Copy link
Member

PR #16 adds support for this using parse_exact (in order to not break the API).

It currently needs to be rebased and then have some unit tests added ...

@aseigo
Copy link
Contributor

aseigo commented Sep 22, 2016

PR #31 was merged that was an improved version of PR #16, so this could now be closed?

@KrzysiekJ
Copy link

KrzysiekJ commented Sep 4, 2018

Using floats is scary when speaking about high precision.

1> 1 - 0.9.
0.09999999999999998
2> 1.1 - 1.
0.10000000000000009

Does the current implementation of parse_exact/1 guarantee to be safe in regard to rounding? For example, if seconds are written as 01.234500000, then if I extract miliseconds as round((SecsFloat - trunc(SecsFloat)) * 1000), will it always yield 235?

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

No branches or pull requests

5 participants