format number on gtklabel
- From: Hariyanto <xhonghar telkom net>
- To: gtk-list gnome org
- Subject: format number on gtklabel
- Date: Tue, 15 Feb 2005 20:12:05 +0700
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]