Python Forum
Fraction Calculation with Limitations
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fraction Calculation with Limitations
#6
Thank you very much for your response I am going to try and incorporate your suggestions into my code. I am trying to learn Python. I am finding these modern programming languages very difficult to learn. I took Fortran in college 56 years ago and did not use it during my working career.

I did some investigation on the internet and came up with the following code for a list of values I will accept for the denominator for fractions limited to 1/16 of an inch precision. I will add this to my existing code.

I would like to be able to make my response look as professional looking as your response.

I am going to try and use the BBCode in my response hopefully I am successful. It is like trying to learn Python.

[/print ("Denominator must be one of four numbers as shown below:  ")
print ("     ")
pow2=[2**x for x in range (5) if x>0]
print (pow2)python]
[python]
Output:
Denominator must be one of four numbers as shown below: [2, 4, 8, 16]
Again thanks for your response.
Reply


Messages In This Thread
Fraction Calculation with Limitations - by TINMAN01 - Dec-05-2020, 02:48 AM
RE: Fraction Calculation with Limitations - by TINMAN01 - Dec-06-2020, 02:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pytrends related querie & suggestion limitations cmg15326 0 617 May-02-2023, 03:47 PM
Last Post: cmg15326
  method to remove zero digits from fraction in decimal Skaperen 17 2,859 Oct-23-2022, 04:02 AM
Last Post: Skaperen
  fraction module: can you stop the reducing? qmfoam 1 2,440 Oct-10-2020, 06:10 PM
Last Post: bowlofred
  whole number and fraction Skaperen 11 5,643 Mar-17-2019, 11:33 PM
Last Post: Skaperen
  switch limitations MuntyScruntfundle 3 2,419 Jan-27-2019, 06:11 PM
Last Post: aakashjha001

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020