Handle rounding error in SPR

Fix #8