Originally Posted by
lovelace
Ah cheers, ill have a look at it later, thanks for taking your time for answering
I didnt know what to expect, but now I got someplace to start
Are you trying to display the european money format such as 123,06?
That's actually pretty easy to do...
Use sprintf() to write the floating point value to a string.
Use strchr() to find the dot
Then change the value at the pointer to a coma...
Code:
char EuroStd[16];
char * dot;
sprintf(EuroStd,"%.2f", value);
dot = strchr(EuroStd,'.');
if (dot)
*dot = ',';
printf("%s",EuroStd);