Typecasting in Cocoa?
Typecasting in Cocoa?
- Subject: Typecasting in Cocoa?
- From: Alexander Dvorak <email@hidden>
- Date: Fri, 28 Dec 2001 18:07:50 -0800 (PST)
I am trying to do some calculations (Mandelbrot stuff)
in my program which require "double" accuracy and
would like to typecast an integer as a double. I
tried to typecast in the manner I know how (in C and
C++) and the compiler gave an error.
short x,y;
double zReal;
x = 5;
zReal = 3.6*(double(x));
// and also 3.6*(x(double)) and other variations
Can you typecast in Cocoa, and if so how?
Alexander
Send your FREE holiday greetings online!
http://greetings.yahoo.com