Fixes table resizer bug.
Adds repeating decimal truncation code. Removes some functions from utils that aren't so general.