Fixes for negative float and "%%" formatting

Hello,
I made 2 minor fixes, one is reported in issues, oher I discovered myself. Feel free to include it in the main repository, if you'd like.
Best regards,
Petr Chyba