03.03.2012, 17:19
I have a question
If I have a float (lets say for ex: 27.000),and I want to print only the 27 part? how can I do so?
for ex if I use %.2f that will print 27.00,and %.1f will print 27.0
I want it to print only 27.
How can I do it?
Thanks 4 helpers
nuriel
If I have a float (lets say for ex: 27.000),and I want to print only the 27 part? how can I do so?
for ex if I use %.2f that will print 27.00,and %.1f will print 27.0
I want it to print only 27.
How can I do it?
Thanks 4 helpers
nuriel