Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c float remove trailing 0

double x = 4.300;
double e = 7.34200;
printf("%g 
 %g", x, e);
// will print 4.3 and then 7.342
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #float #remove #trailing
ADD COMMENT
Topic
Name
5+7 =