Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 30, 2022 03:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save parzibyte/cc733557f900fbd54e5d8a3a6ba3df5e to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <locale.h>
int main(void)
{
setlocale(LC_NUMERIC, "");
long double dinero = 1234567.89;
printf("$%'.2Lf\n", dinero);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment