First of all, is this function special to processing or does it exist in java by default?
When I code in processing the line below,
println(float("88") + "\t" + float("88\n") + "\t" + float("88p") ); // p is just an arbitrary character other than '\n'
It outputs
88.0 88.0 NaN
So, why float() function works fine with '\n' character but does not work with 'p' ? Aren't they both characters? I know '\n' is something special but in this case does it make a difference?
edit : I have replaced 'K' with 'p' because of some warnings came from the answers.