Guest_imported
New member
- Jan 1, 1970
- 0
if I have a floating point number
float = 100.5;
how I can isolate the 'last' digit and store that single number in an int variable.
Eg.
float = 100.5 ;
int = 5;
float = 100.0;
int = 0;
float = 100.7;
int = 7;
Many thanks !!
float = 100.5;
how I can isolate the 'last' digit and store that single number in an int variable.
Eg.
float = 100.5 ;
int = 5;
float = 100.0;
int = 0;
float = 100.7;
int = 7;
Many thanks !!