Jul 28, 2003 #1 XoFF Programmer Jun 22, 2003 23 GB when i enter a float in my program he always shows 4 digits after the point. but i dont want leading zero's so: 5.2 not 5.2000 5 not 5.0000 5.236 not 5.2360 It's hard to explain because english isn't my mother tongue
when i enter a float in my program he always shows 4 digits after the point. but i dont want leading zero's so: 5.2 not 5.2000 5 not 5.0000 5.236 not 5.2360 It's hard to explain because english isn't my mother tongue
Jul 28, 2003 Thread starter #2 XoFF Programmer Jun 22, 2003 23 GB i meant 6 digits after point so 5.2 not 5.200000 5 not 5.000000 5.236 not 5.236000 so I don't want any useless zero's without predefining like %5.2f Upvote 0 Downvote
i meant 6 digits after point so 5.2 not 5.200000 5 not 5.000000 5.236 not 5.236000 so I don't want any useless zero's without predefining like %5.2f
Jul 28, 2003 1 #3 killingking MIS Jul 19, 2003 19 IN you need to specify format like %5.2f precision 6 is default format for float in C Upvote 0 Downvote