FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Software Bugs
(Moderator: fry)
   float() in parentheses
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: float() in parentheses  (Read 1842 times)
narain


float() in parentheses
« on: May 8th, 2004, 12:11pm »

This is very strange.
 
float u = float(x)/width; works.
float u = (float(x)/width); doesn't work: "unexpected token: float".
float u = (x/float(width)); works!
 
Apparently Processing finds it illegal for float() to be the first token in a parenthesized expression.
 
I guess it gets confused expecting (float... to be a typecast.
 
fry


WWW
Re: float() in parentheses
« Reply #1 on: May 8th, 2004, 8:35pm »

yeah, more of these have been popping up recently. thanks for the details on what's working and what's not.. that's really helpful.
 
Pages: 1 

« Previous topic | Next topic »