Skip to content

Fix addSecondFractions failing when subtracting whole multiples of 1.0#13

Open
sternenseemann wants to merge 1 commit intolpeterse:masterfrom
sternenseemann:fix-addSecondFractions
Open

Fix addSecondFractions failing when subtracting whole multiples of 1.0#13
sternenseemann wants to merge 1 commit intolpeterse:masterfrom
sternenseemann:fix-addSecondFractions

Conversation

@sternenseemann
Copy link
Copy Markdown

If frcs was 0 previously, setSecondFraction would be called with 1.0 which resulted in an error.

Resolves #12.

@sternenseemann sternenseemann force-pushed the fix-addSecondFractions branch from 1730b0d to 67ae550 Compare June 23, 2020 13:35
Also adds a test case for this: addSecondFractions (-1.0) should exactly
behave like addSeconds (-1).

Resolves lpeterse#12.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

addSecondFractions fails if fraction -1 is added

1 participant