Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 405326 Details for
Bug 552464
C++ program outputs floats to stdout as 11.111 through valgrind
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
valgrind_float_test.cpp
valgrind_float_test.cpp (text/plain), 509 bytes, created by
corto
on 2015-06-18 13:37:02 UTC
(
hide
)
Description:
valgrind_float_test.cpp
Filename:
MIME Type:
Creator:
corto
Created:
2015-06-18 13:37:02 UTC
Size:
509 bytes
patch
obsolete
>#include <iostream> > >int main(int argc, char* argv[]){ > > for(double d=0; d<100; d+=4.7) > std::cout << d << " "; > > std::cout << std::endl; > > return 0; >} > >/* > >% ./valgrind_float_test.elf-64 >0 4.7 9.4 14.1 18.8 23.5 28.2 32.9 37.6 42.3 47 51.7 56.4 61.1 65.8 70.5 75.2 79.9 84.6 89.3 94 98.7 > >% valgrind -q ./valgrind_float_test.elf-64 >0 4.7 9.4 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 11.1111 > >*/
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 552464
: 405326 |
405328
|
405332
|
405472
|
405476
|
405478