10
I have a question, it has to limit the number of decimal places in C++?
float x = 2.958;
Instead of rounding up or down using floorf
, roundf
, can only take the two numbers after the comma?
that would look something like this
float x = 2.95;
You can limit when printing, that’s it ?
– Hiago Souza