I need to round of decimal numbers to certain precision in my C program. I am facing difficulties in these type of examples
x = -0.000000001235
which when rounded (using %.5f
) to five decimals prints -0.00000
.
How should I remove the negative sign?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire