Hello All
I am new at this website and I hope I can be a good memeber.
I have a question about C programing language.
I need to change the decimal point of a double for example:
If I have a doubles with 5 decimal digits
123.45678
234.12345
34.34567
I want to be able to change them to only 2 decimal point , for example:
123.45
234.12
34.34
or to 3 decimal point:
123.456
234.123
34.345
I am doing some testing and I want to investigate the result of more decimal digit in the final result. Is there any C function which does that??
Or Is there any easy way to do this??
Thank you guys.