Be more careful with numerical equality.

These changes are all motivated by the necessity of preserving the
exact number of significant figures from the user's answer.

Test plan:
All KAS browser tests pass.

Auditors: alex