Skip to content

Add Float::Primitive#sign_bit#15830

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
HertzDevil:feature/float-primitive-sign-bit
May 29, 2025
Merged

Add Float::Primitive#sign_bit#15830
straight-shoota merged 1 commit intocrystal-lang:masterfrom
HertzDevil:feature/float-primitive-sign-bit

Conversation

@HertzDevil
Copy link
Contributor

This encapsulates one of the most common uses of Math.copysign in the standard library. It is also needed to fully replace Float::Printer::IEEE.

BigFloat is not IEEE 754-comformant, so it does not have this method.

@straight-shoota straight-shoota added this to the 1.17.0 milestone May 26, 2025
@straight-shoota straight-shoota merged commit 55a7cc4 into crystal-lang:master May 29, 2025
38 checks passed
@HertzDevil HertzDevil deleted the feature/float-primitive-sign-bit branch May 29, 2025 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants