Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
C :: c integer to string 
C :: c float to string 
C :: format bool c 
C :: c/c++ type format 
C :: how to print the first character of a string in c 
C :: tkinter create_line 
C :: stdio.h in c 
C :: malloc in c 
C :: xor swap 
C :: c# for loop decrement 
C :: strong number in c 
C :: c for loop 
C :: how to reverse a string in c 
C :: fgets function in c 
C :: multiplication table in c 
C :: enum in c 
C :: to run Blazor project using CLI 
C :: volatile keyword in c 
C :: c for 
C :: c programming 
C :: getchar in c 
C :: recursive in c 
C :: signed and unsigned in c 
C :: c to fahrenheit 
C :: Create the static library libmy.a containing all the functions listed below: 
C :: ternary operator in c 
C :: english to russian translation 
C :: c read file from command line 
C :: can we use logical operators in switch c 
C :: add c program 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =