format number on gtklabel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How I want to send string with number like 3456789 to GtkLabel with the output 3.456.789,00
I try this code :

str_total = g_strdup_printf("%f", dbl_total);
str_total_formatted = g_strndup(str_total, strcspn(str_total, ".") +3);

and the output : 3456789.00

How to make the output : 3.456.789,00

thx
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux