Do math with correct handling of significant figures