'Decimal to Hexadecimal conversion of a number with fractional part, in python? [closed]

I want to change decimal with fraction to hexadecimal in python, I tried hex() function but works just for integer number



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source