Skip to content

Conversation

@23Skidoo
Copy link

Fixes #19.

Patch by @wojtekmach.

@23Skidoo
Copy link
Author

23Skidoo commented Feb 16, 2022

I have tested that this patch solves the problem for me:

iex(2)> Spect.to_spec(Decimal.new("1.23"), Decimal)
{:ok, #Decimal<1.23>}
iex(3)> Spect.to_spec(Decimal.new("-1.23"), Decimal)
{:ok, #Decimal<-1.23>}

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.

Spect can't handle negative Decimals

2 participants