Why function round isnt working?
#include <math.h>
#include <stdio.h>
int main(void)
{
float y = round(12.59);
float k = y*100000000000000;
printf("%f\n",k);
}
The result of this program is 1300000030064640.000000
If 12.59 is rounded to the nearest integer (13) why the result of this multipliyng contains so odd number? I know that i can trasnform my float into int, but what to do if i need to store a bigger number than int can hold?