I am converting p5js to Processing. I’ve actually used Processing for years but I specialize in Javascript. I am surprised at this issue because I’ve never noticed before. Not sure how I overlooked it.
When calculating a float value in P5js I get this expected result:
let k = kMax * sqrt(i/n);
0.653496871297773
When calculating a float value in Processing I get this unexpected result:
float k = kMax * sqrt(i/n);
0.0
What do I need to do in order to generate a proper float value in Processing?