Answers for "how to convert integer into double C="

C
2

casting in c

#include <stdio.h>
#include <stdlib.h>
int main(){
  int x = 7, y = 5;
  float z;
  z = (float)x / (float)y;   /*Here the value of z is 1.400000*/
  return 0;
}
Posted by: Guest on May-17-2020
0

int to double c

int vIn = 0;
double vOut = (double)vIn;
Posted by: Guest on November-25-2020

Code answers related to "how to convert integer into double C="

Code answers related to "C"

Browse Popular Code Answers by Language