Engineering notation no embed by nu

main(n,s,e){while(~scanf("%c.%[^e]%ne%d ",s,s+1,&n,&e))printf(e<n?e>0?"%.*s.%5$s\n":"%3$#.*f%s\n":"%.*s%.*d\n",abs(e),s,e-n,!n--,++e+s);}

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

download

return to the top page