Skip to content

Commit 712f825

Browse files
committed
Fix issue with format on v0.7
1 parent 1e3eba3 commit 712f825

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cformat.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ function format( x::T;
255255
end
256256
elseif stripzeros && in( actualconv[1], "fFeEs" )
257257
dpos = Compat.findfirst( isequal('.'), s )
258+
dpos === nothing && (dpos = length(s))
258259
if actualconv[1] in "eEs"
259260
epos = Compat.findfirst(isequal(actualconv[1] == 'E' ? 'E' : 'e'), s)
260261
rpos = epos === nothing ? length( s ) : epos-1

0 commit comments

Comments
 (0)