Contact: aviboots(AT)netvision.net.il
41,593 questions
54,235 answers
573 users
import math d = 3.14 # Mantissa is the fractional part of a number = 0.785000 fraction, exponent = math.frexp(d) print(f"fraction = {fraction:.3f} exponent = {exponent}") ''' run fraction = 0.785 exponent = 2 '''