c'est tout con,comment qu'on extrait la partie entiere d'un nombre à virgule flottante pour l'utiliser tel un int ou un char un peu plus loin?
En C?
C'est facile!
int x;
float y=1.234;
x=y;
Si tu veux absolument utiliser un transtypage, il y a:
int x;
float y=1.234;
x=(int)y;
mais c'est inutile.