How to convert a decimal fraction into an ordinary fraction (on Python) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to convert a decimal fraction into an ordinary fraction (on Python)

For example: x = input() #for example x=32 y = input() #for example y=56 z = x/y #the answer is ~0,5714 Than I need to convert 0,5714 in 4/7

25th Feb 2020, 8:23 PM
Syrex
Syrex - avatar
7 Answers
25th Feb 2020, 8:41 PM
Semeniuk Bohdan
Semeniuk Bohdan - avatar
+ 10
S.Jeevan Surya please do not spam emojis or act rudely to fellow members.
25th Feb 2020, 8:57 PM
bobbie
bobbie - avatar
+ 3
S.Jeevan Surya, I can find no joke in the question. Can you?
25th Feb 2020, 8:43 PM
HonFu
HonFu - avatar
+ 3
Syrex now a question to you: Find 4 tags that dont fit to your question. 😉
25th Feb 2020, 8:59 PM
Oma Falk
Oma Falk - avatar
+ 1
привет хорошо
26th May 2020, 8:03 AM
дидар
- 3
HonFu <redacted> S.Jeevan Surya Please no offenses. We're all mature enough to post on public forums where kids are part of the community, are we?
25th Feb 2020, 8:44 PM
S.Jeevan Surya
S.Jeevan Surya - avatar
- 6
😂😂😂
25th Feb 2020, 8:24 PM
S.Jeevan Surya
S.Jeevan Surya - avatar