How about, I'm doing a project in C, an issue has arisen that I hope the community can help me.
I'm using decimal numbers specifically the data type is Float. When printing my output I see that C is doing a kind of rounding. For example:
The number you should print is .0751632 and print .0800000
The way I print is:
printf("%f\n",aux_no->rutas[y]);
The variable "aux_no" is a structure with the array "routes" as one of its members, that array is of the float type.
Do not know if I should change the data type to Double?
How can I stop rounds that way?
Thanks to everyone for reading.