A floating result misses the integer answer
The application needs the exact value, not a nearby representation that looks correct when printed.
modalg computes supported determinants and solves with exact output, removing rounding from the result requirement.