How to turn off floating-point detection correctly when calculating non spherical particles?

Hello, Developers!
I want to inquire how to turn off floating-point detection when calculating non-spherical particles correctly. Thank you!

We already have a thread open at Cylindrical particles can be calculated using values of m=2 and n=4, but using values of m=2 and n=6 will result in an error - #5 by cgw . Please do not create duplicate postings.