Lines Matching refs:texp
644 tmant, texp = 0, 0
648 if texp > exp:
649 tmant <<= texp-exp
650 texp = exp
652 mant <<= exp-texp
654 # Round tmant * 2**texp to a float. The original recipe
655 # used float(str(tmant)) * 2.0**texp for this, but that's
658 tail = max(len(bin(abs(tmant)))-2 - mant_dig, etiny - texp)
662 texp += tail
663 return math.ldexp(tmant, texp)