I have the next code, this code print a value in scientific notation, but i want to remove the trailing zeros

valor = 541; QString cStyleResult = QString::number(valor.toDouble(), 'e');

qDebug() << cStyleResult ;

//////////////////////////////////////////////
output: 5.410000e2

I want to remove the trailing zeros(right decimal zeros), example I want to save only the value of 5.41

some ideas????