Improve significant figures logic