Skip to content

Conversation

@paulyoung
Copy link
Contributor

This fixes an issue where toString $ toSeconds $ nanoseconds 1 would produce "1e-9s" instead of "0.000000001s".

> Decimal.toString $ Decimal.fromNumber 0.000000001
"1e-9"

> Decimal.toFixed 9 $ Decimal.fromNumber 0.000000001
"0.000000001"

@paulyoung paulyoung self-assigned this Jul 3, 2018
@paulyoung paulyoung merged commit b888045 into master Jul 3, 2018
@paulyoung paulyoung deleted the paulyoung/to-fixed branch July 3, 2018 20:01
@paulyoung
Copy link
Contributor Author

I think we need to revert this.

Unsurprisingly, this is now producing "1.000000000s" instead of "1s", etc.

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.

3 participants