Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C
How to Convert double to int in C
qbq
Programming language:
C
2021-04-01 03:25:03
0
Q:
How to Convert double to int in C
jasmine
Code:
C
2021-02-06 04:57:04
double a = 12.34; int b = a ; //b = 12 not 12.34
1
doodle
Code:
C
2021-04-16 04:19:38
int vIn = 0; double vOut = (double)vIn;
0
Tags
int
con
how
Related
convert a float to binary c
string to int c
cast from float to long c
int to float c
convert string to float c
int to double c
glsl int to float
c float to int
New to Communities?
Join the community