Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
printf %a mishandles zero precision #15502
Created by firstname.lastname@example.org
$ perl -lwe 'printf "%a\n", 1.03125'
The last of the above is incorrect: the output should be "0x1p+0", with
$ perl -lwe 'printf "%e\n", 1.04'