When calculating a float value in P5js I get this expected result:
let k = kMax * sqrt(i/n);
When calculating a float value in Processing I get this unexpected result:
float k = kMax * sqrt(i/n);
What do I need to do in order to generate a proper float value in Processing?