strip trailing zeros only from fractional part, not from exponent
add test case for %g
Merge pull request #12 from derrell/exponent-significant-zeros-stripped

strip trailing zeros only from fractional part, not from exponent