FreeBSD Bugzilla – Attachment 188809 Details for
Bug 224326
double subnormals are not well printed on printing with printf (and friends)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
program run to get the expected and obtained output.
main_double.c (text/x-csrc), 231 bytes, created by
Luis Colorado
on 2017-12-13 20:15:16 UTC
(
hide
)
Description:
program run to get the expected and obtained output.
Filename:
MIME Type:
Creator:
Luis Colorado
Created:
2017-12-13 20:15:16 UTC
Size:
231 bytes
patch
obsolete
>#include <stdlib.h> >#include <stdint.h> >#include <stdio.h> > >int main() >{ > double val = 0x0.8p-1018; > > while (val != 0) { > printf("0x%016llx %-0.17lg\n", *(unsigned long long *)&val, val); > val /= 2.0; > } /* while */ >} /* main */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 224326
: 188809 |
188840