fix formatting of non-integral duration values