def unexpo(intpart, fraction, expo):
 if (expo > 0):
  f = len(fraction)
  (intpart, fraction) = ((intpart + fraction[:expo]), fraction[expo:])
  if (expo > f):
   intpart = (intpart + ('0' * (expo - f)))
 elif (expo < 0):
  i = len(intpart)
  (intpart, fraction) = (intpart[:expo], (intpart[expo:] + fraction))
  if (expo < (- i)):
   fraction = (('0' * ((- expo) - i)) + fraction)
 return (intpart, fraction)

def unexpo ( intpart , fraction , expo ) : if ( expo > 0 ) : f = len ( fraction ) ( intpart , fraction ) = ( ( intpart + fraction [ : expo ] ) , fraction [ expo : ] ) if ( expo > f ) : intpart = ( intpart + ( '0' * ( expo - f ) ) ) elif ( expo < 0 ) : i = len ( intpart ) ( intpart , fraction ) = ( intpart [ : expo ] , ( intpart [ expo : ] + fraction ) ) if ( expo < ( - i ) ) : fraction = ( ( '0' * ( ( - expo ) - i ) ) + fraction ) return ( intpart , fraction )
remove the exponent by changing intpart and fraction .