Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

Introduce floating point precision. #55

Open
jreeter opened this issue Oct 27, 2017 · 2 comments
Open

Introduce floating point precision. #55

jreeter opened this issue Oct 27, 2017 · 2 comments

Comments

@jreeter
Copy link

jreeter commented Oct 27, 2017

Often times when calculating week days I'd like more precision to be returned. Currently calculations less then one day get rounded down to zero. I would like to see a flag introduced to signal when to not round down. So we end up with possible values of 0.5 days or 7.3 days.

@jamesplease
Copy link
Owner

Hey there @jreeter . I'm not opposed to adding something like this, but someone else would need to code it up with tests and make a PR. If you're up to the challenge I'd be happy to review!

Thanks ✌️

@eleventhaus
Copy link

Could really use this feature when calculating weekends. As it stands when calculating weekendDays(Friday, Saturday) it rounds down instead of rounding up.

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

No branches or pull requests

3 participants