temptab: use floating-point arithmetic