Re: convert an int variable into a gdouble



On Fri, 2006-09-29 at 10:15 +0200, ferri_marllo gva es wrote:

Hi everyone!!
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!!
can you help me??
thanks

From int to gdouble ???

gdouble d;
int i = 3;

d = (gdouble) i;

or

d = i;

A gdouble doubles in size an int ... so, what's the problem ?
-- 
Iago Rubio




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