turn val;
   }

   bool isNegative = false;
   std::string ans;

   // First check to see if we start with a sign indicator
   if (val[0] == '-') {
      ans = "-";
      ++startPos;
      isNegative = true;
   } else if (val[0] == '+') {
      ++startPos;
   }

   if (len - startPos < 2) {
      return val;
   }

   if (val.substr(startPos, 2) == "0x" || val.substr(startPos, 2) == "0X") {
      // If we start with "0x", then the radix is hex.
      radix = 16;
      startPos += 2;
   } else if (val.substr(startPos, 2) == "0b"||val.substr(startPos,2) == "0B") {
      // If we start with "0b", then the radix is binary.
      radix = 2;
      startPos += 2;
   }
   if (val.substr(startPos, 2) == "0o" || val.substr(startPos, 2) == "0O") {
      // If we start with "0o", then the radix is octal.
      radix = 8;
      startPos += 2;
   }

   int exp = 0;
   if (radix == 10) {
      // If radix is decimal, then see if there is an
      // exponent indicator.
      size_t expPo