Scanf is slow. 40% speedup
Limit the swap percentage significant digits