
Function m = nicemagnitude(r) returns the magnitude of real r, i.e. the power-of-ten to which its belongs. This function belongs especially to m-file nicerange.m, and does not necessarily return the same value as m-file orderofmagnitude.m. The latter m-file complies better to the definition in https://en.wikipedia.org/wiki/Order_of_magnitude (c) 2026 fabien van mook 2026.08.20 release of this file within package "fvm-nicerange" under GNU GPLv3+