Re: Float formatting in TreeView
- From: Heinrich <lbjunk gmail com>
- To: GTKmm List <gtkmm-list gnome org>
- Subject: Re: Float formatting in TreeView
- Date: Wed, 18 Nov 2009 04:11:43 +0000
Paulo Flabiano Smorigo wrote:
On Mon, 2009-11-16 at 11:56 -0200, Paulo Flabiano Smorigo wrote:
Hi Everybody,
How do I format a float column in a TreeView? The column appears with
six columns for decimals, like "11.330000". I just want two columns
for decimals, like "11.33".
The formnating argument was something I was just looking up yesterday.
It takes the same type of formatting as a printf statement. For a float
with two numbers after the decimal point use
m_treeview.append_column_numeric("downloaded",m_colrec.m_col_downloaded,"%4.2f");
__________ Information from ESET Smart Security, version of virus signature database 4616 (20091117) __________
The message was checked by ESET Smart Security.
http://www.eset.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]