fix #6457, uses of fixed-precision constants in complex functions
minor edits, and a missing `const`