Engineering notation no embed by tails

h
s/.*e//
:1
s/[1-9]/&+/g
y/123456789/012345678/
s/+0/9+/
t1
x;G
:
s/e.*\n0*\|\.\B\|-$//
s/\.\(.\)\(\w*\)+/\1.\2/
s/\(.\)\.\(.*-\)0*+/0.\1\2/
t
y/+/0/

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page