Issue #395 - fixing partity for non-integers. Much thanks to Zegnat!