0

I'm programming in C on Eclipse. In the console, when a real is displayed, the integer and the fraction are separate by comma. How can I change to point to separate 2 parts ?

greg-449
  • 106,591
  • 226
  • 99
  • 140
Dutchman
  • 41
  • 6

1 Answers1

1

I guess you are using printf() to print the numbers. Then it seems there are some SO answers suitable for you:

But they all suggest you to change the current locale, and I guess there is no easier way, since the standard library doesn't provide any other option for that.

Community
  • 1
  • 1
Dmitry
  • 1,985
  • 1
  • 11
  • 10