handling tofixed(2), papertype ordering