exp2_64() broken for negative inputs #9991
Labels
bug
Observed behavior contradicts documented or intended behavior
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
standard library
This issue involves writing Zig code for the standard library.
Milestone
Remember to search before filing a new report
Zig Version
0.9.0-dev.1417+bea447a63
Steps to Reproduce
Expected Behavior
Should successfully compute
2^x
wherex
is negative.Actual Behavior
2^(-8)
givesinf
, and the other negative power leads to a runtime crash:Note that the same problem is not observed for
exp()
orexp2_32()
.The text was updated successfully, but these errors were encountered: