Rounding to two decimal places in Octave
You can do:
res = round(100 * 37.073) / 100
you could use the C style printf format.
sprintf("%.2f", 32.073)
You can do:
res = round(100 * 37.073) / 100
you could use the C style printf format.
sprintf("%.2f", 32.073)