Re: want to add number to label



On Tue, 18 Mar 2003, edward hage wrote:

> Hello, I think I have a simple problem but I cannot figure out how to
> get a float on a label. It is designed for a string, like "this is a
> button" but I want to show a float value.
>
> So my question is how can I turn a float into a suitable format to stick
> to a label?

See the man page for libc's sprintf(3), or glib's g_strdup_printf.

-- m

-----------------------------------------------------------------------
Mariano Suarez Alvarez
Departamento de Matematica - Universidad Nacional de Rosario
Pellegrini 250 - Rosario 2000 - Argentina

    De la observacion de la irreductibilidad de las creencias ultimas
    he sacado la mayor leccion de mi vida. Aprendi a respetar las ideas
    ajenas, a detenerme ante el secreto de las conciencias, a entender
    antes de discutir, a discutir antes de condenar. Y como estoy en
    vena de confesiones, hago una mas, quizas superflua: detesto con
    toda mi alma a los fanaticos.

    Norberto Bobbio, Italia civil.

-----------------------------------------------------------------------




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