Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
Rounding in C++
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23026 for x86 #include <iostream> #include <math.h> int main() { double v = 1.5; double r = round(v); std::cout << "v=" << v << " r=" << r << std::endl; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Progress bar
MSVC noexcept - works
MSVC initializer code
parantheses matching test 1
decltype_lambda
sample ptr and obj ex
#21.2
What exactly is “broken” with Microsoft Visual C++'s two-phase template instantiation?
C++ quine
atoi on hex
Please log in to post a comment.