Re: convert an int variable into a gdouble



On 9/29/06, ferri_marllo gva es <ferri_marllo gva es> wrote:
i'm building an application,and i need to convert an int variable into a gdouble
to can use some plotting functions.
I don't know how to do it!!

You can just cast:

 int i = 42;
 gdouble gd;

 gd = i;

Unless I'm missing something?

John



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