Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C++
double to int c++
spacetyper
Programming language:
C++
2021-04-26 15:43:25
0
Q:
double to int c++
Andy K.
Code:
C++
2021-04-12 19:59:37
double x = 5.4; int y = (int) x;
1
Tags
int
Related
double max value c++
c++ forbids comparison between pointer and integer
double to string c++
double pointers C++
round double to n decimal places c++
how to convert from string to int in c++
how to type cast quotient of two integers to double with c++
double to float c++
difference between unsigned and signed int c++
difference between unsigned and signed c++
c++ float array zero
c++ changing string to double
how to convert a string to a double c++
c++ scanf always expects double and not float
c++ round to int
c++ string to int
casting to a double in c++
New to Communities?
Join the community