Get your own Python server Result Size: 625 x 565
x
 
#Import math Library
import math  
#Return mantissa and exponent of a given number
print(math.frexp(4))
print(math.frexp(-4))
print(math.frexp(7))
(0.5, 3)
(-0.5, 3)
(0.875, 3)