Use %g instead of %f in most function labels

Closes issue #103