It reminds me that it&#x27;s annoying that there is no &quot;engineering&quot; mode for printf (to force the exponent to be a multiple of three).  There is this project on github using %.*f: <a href="https:&#x2F;&#x2F;github.com&#x2F;dhoerl&#x2F;EngineeringNotationFormatter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dhoerl&#x2F;EngineeringNotationFormatter</a>