Set decimal places
-
Hi,
I would like to echo the value of 'heat.heaters[1].current' in the following line of code as an integer (i.e. no decimal places). Currently it always displays it with to two decimal places.echo "Heating the nozzle to " ^ global.filamentTemp ^ ", it's currently " ^ heat.heaters[1].current ^ "°C"
It must be easy but I'm feeling a bit thick today!
-
@handyandy see the
floor
function at https://docs.duet3d.com/User_manual/Reference/Gcode_meta_commands#functions. -
Thanks for that.