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

Make it usable with Data.Complex. #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Abbath
Copy link

@Abbath Abbath commented Sep 5, 2024

exponent from RealFloat now returns 0.

exponent from RealFloat now returns 0.
@expipiplus1
Copy link
Owner

Would you be able to add some tests to make sure that this conforms to the laws specified for RealFloat:

exponent corresponds to the second component of decodeFloat. exponent 0 = 0 and for finite nonzero x, exponent x = snd (decodeFloat x) + floatDigits x. If x is a finite floating-point number, it is equal in value to significand x * b ^^ exponent x, where b is the floating-point radix. The behaviour is unspecified on infinite or NaN values.

Do you want to be a maintainer for this package and on Hackage?

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.

2 participants