public static NumberWrapper absComputation(NumberWrapper x) {
    { Surrogate testValue000 = Stella_Object.safePrimaryType(x);

      if (Surrogate.subtypeOfIntegerP(testValue000)) {
        { IntegerWrapper x000 = ((IntegerWrapper)(x));

          if (IntegerWrapper.unwrapInteger(x000) < 0) {
            return (IntegerWrapper.wrapInteger(0 - IntegerWrapper.unwrapInteger(x000)));
          }
          else {
            return (x000);
          }
        }
      }
      else if (Surrogate.subtypeOfFloatP(testValue000)) {
        { FloatWrapper x000 = ((FloatWrapper)(x));

          if (FloatWrapper.unwrapFloat(x000) < 0.0) {
            return (FloatWrapper.wrapFloat(0.0 - FloatWrapper.unwrapFloat(x000)));
          }
          else {
            return (x000);
          }
        }
      }
      else {
        { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

          stream000.nativeStream.print("`" + testValue000 + "' is not a valid case option");
          throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
        }
      }
    }
  }