apologies for disturbing. it is so close to 1.0 that I wanted to make sure that the following julia behavior is what you wanted and not a bug:
#include <stdio.h>
int main() {
printf("'%12.10g'\n", 1e-2);
printf("'%12.10g'\n", 1e-9);
}
' 0.01'
' 1e-09'
Note the string width in 0.6.2:
julia> @sprintf("%12.10g", 1e-9)
"1e-09"
julia> @sprintf("%12.10g", 1e-2)
" 0.01"
and in 0.7:
julia> using Printf
julia> @sprintf("%12.10g", 1e-2)
WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package `Printf`.
Add `using Printf` to your imports.
in module Main
" 0.01"
julia> @sprintf("%12.10g", 1e-9)
WARNING: Base.@sprintf is deprecated: it has been moved to the standard library package `Printf`.
Add `using Printf` to your imports.
in module Main
"1e-09"