Hi! I guess I've found a bug in the QCPAxisTicker::getMantissa(double input, double *magnitude)
method. When input == 1000.0
, qFloor(qLn(input)/qLn(10.0))
doesn't give the desired 3, due to the precision error in qLn(). So I fixed it by using qFloor(std::log10(input))
.