The simpler version is a print with
left(string(float_number),instr(".",string(float_number)) + dec)
where dec is the amount of decimal places you want.
Cutting of all zeros is a little problem because in reality the computer will "never" have only zeros there ... (number representation can't be precise enough with float, not even double can ...)
left(string(float_number),instr(".",string(float_number)) + dec)
where dec is the amount of decimal places you want.
Cutting of all zeros is a little problem because in reality the computer will "never" have only zeros there ... (number representation can't be precise enough with float, not even double can ...)