Iago Rubio writes:
> A gdouble doubles in size an int
Careful here, that depends on the machine. The original CRAY machines
for instance had short, int, long, float and double all 64 bits in
size, I think.
--tml
___
gtk-app-devel-list mailing list
gtk
On Fri, 2006-09-29 at 10:15 +0200, [EMAIL PROTECTED] 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;
On 9/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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 somethin