Hi,
I want to print most significant digit of a number
eg. if its 1.234455666, I want to print 1.23445
if it is 123.123456, I want to print 123.123
I tried using printf("%6f",va lue); but it means placing 6 digit of
decimal value.
I want to have total of 6 digits only.
how do I do this?
Thanks
I want to print most significant digit of a number
eg. if its 1.234455666, I want to print 1.23445
if it is 123.123456, I want to print 123.123
I tried using printf("%6f",va lue); but it means placing 6 digit of
decimal value.
I want to have total of 6 digits only.
how do I do this?
Thanks
Comment