Closer to perfection; fixed float truncating bug