********Welcome to Online IDE!! Happy Coding :)********** NOTE: Precision is limited to 19 digit wide... NOTE: Since computational issues, reduction on decimal component EXCEEDING 999999999 will lose its precision by 1 digit. NOTE: Value of acceptedNumeratorLimit = 999999999. This can be changed to speed up most reduced form calculations NOTE: Also to AVOID any Session kills or hanging To create sample of decimals and fractions, original numerator will be divided numerator/prime number from: 2 => 5 DENOMINATOR AND NUMERATOR WILL BOTH BE TRUNCATED INLINE WITH INTEGRITY ORIGINAL INPUTS ****************** is a prime number: 2 is a prime number: 3 is not a prime number: 4 *** The Decimal presented: 3.1425 The fraction part: 1425 this is numerator: 1425 this is denominator: 10000 Elapsed time in seconds to reduce fraction: 5.41693E-4 reduced numerator: 285 reduced denominator: 2000 Fraction presented is: 22/7 No whole number before fraction Original whole number from fraction (numerator/denominator):3 remaining numerator: 1 remaining fraction: 1/7 Fraction provided in challenge is improper: 22/7 Mixed number fraction is: 3-1/7 1Mixed number fraction(0) and original decimal(3) have same whole number 2Fraction provided in challenge: 1/7 might not be correctly reduced (285/2000) Discrepency above is due to conversion from improper=>proper fraction 1Original fraction(22/7)has been changed to proper fraction(3-1/7) Remaining fraction is: 1/7 is non- representation of the initial decimal conversion: 0.1425 1Remaining fraction 1/7 in decimal is 0.14285714285714285 and NOT:0.1425(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 3.1425 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 22/2 Original numerator / PRIME number AS DECIMAL => 11.0 Original numerator / PRIME number AS FRACTION (not reduced) => 22/3 Original numerator / PRIME number AS DECIMAL => 7.333333333333333 *** The Decimal presented: 0.74500000259999948 The fraction part: 74500000259999948 this is numerator: 74500000259999948 this is denominator: 100000000000000000 Denominator(100000000000000000) considered too large for computation Denominator reduced to 9 digits wide: 100000000 Numerator(74500000259999948) considered too large for computation Numerator reduced to 9 digits wide: 745000002 Elapsed time in seconds to reduce fraction: 8.511495848 reduced numerator: 372500001 reduced denominator: 50000000 Fraction presented is: 987000200/1000000200 No whole number before fraction 2Fraction provided in challenge: 987000200/1000000200 might not be correctly reduced (372500001/50000000) 2Original reduced fraction provided 987000200/1000000200 is non- representation of the initial decimal conversion: 0.74500000259999948 1Remaining original fraction(987000200/1000000200) in decimal is 0.9870000025999994 and NOT:0.74500000259999948(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.74500000259999948 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 987000200/2 Original numerator / PRIME number AS DECIMAL => 4.935001E8 Original numerator / PRIME number AS FRACTION (not reduced) => 987000200/3 Original numerator / PRIME number AS DECIMAL => 3.290000666666667E8 *** The Decimal presented: 0.6 The fraction part: 6 this is numerator: 6 this is denominator: 10 Elapsed time in seconds to reduce fraction: 3.113E-6 reduced numerator: 3 reduced denominator: 5 Fraction presented is: 2/3 No whole number before fraction 2Fraction provided in challenge: 2/3 might not be correctly reduced (3/5) 2Original reduced fraction provided 2/3 is non- representation of the initial decimal conversion: 0.6 1Remaining original fraction(2/3) in decimal is 0.6666666666666666 and NOT:0.6(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: NOT Terminating fraction since reduced denominator is NOT divisble by prime factor of two or five Original numerator / PRIME number AS FRACTION (not reduced) => 2/2 Original numerator / PRIME number AS DECIMAL => 1.0 Original numerator / PRIME number AS FRACTION (not reduced) => 2/3 Original numerator / PRIME number AS DECIMAL => 0.6666666666666666 *** The Decimal presented: 1.1 The fraction part: 1 this is numerator: 1 this is denominator: 10 Elapsed time in seconds to reduce fraction: 1.725E-6 reduced numerator: 1 reduced denominator: 10 Fraction presented is: 10/9 No whole number before fraction Original whole number from fraction (numerator/denominator):1 remaining numerator: 1 remaining fraction: 1/9 Fraction provided in challenge is improper: 10/9 Mixed number fraction is: 1-1/9 1Mixed number fraction(0) and original decimal(1) have same whole number 2Fraction provided in challenge: 1/9 might not be correctly reduced (1/10) Discrepency above is due to conversion from improper=>proper fraction 1Original fraction(10/9)has been changed to proper fraction(1-1/9) Remaining fraction is: 1/9 is non- representation of the initial decimal conversion: 0.1 1Remaining fraction 1/9 in decimal is 0.1111111111111111 and NOT:0.1(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 1.1 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 10/2 Original numerator / PRIME number AS DECIMAL => 5.0 Original numerator / PRIME number AS FRACTION (not reduced) => 10/3 Original numerator / PRIME number AS DECIMAL => 3.3333333333333335 *** The Decimal presented: 6.1 The fraction part: 1 this is numerator: 1 this is denominator: 10 Elapsed time in seconds to reduce fraction: 2.078E-6 reduced numerator: 1 reduced denominator: 10 Fraction presented is: 10/9 No whole number before fraction Original whole number from fraction (numerator/denominator):1 remaining numerator: 1 remaining fraction: 1/9 Fraction provided in challenge is improper: 10/9 Mixed number fraction is: 1-1/9 ***Mismatch in whole numbers**** Fraction has following whole number:1 Original decimal has following whole number:6 *********** 2Fraction provided in challenge: 1/9 might not be correctly reduced (1/10) Discrepency above is due to conversion from improper=>proper fraction 1Original fraction(10/9)has been changed to proper fraction(1-1/9) Remaining fraction is: 1/9 is non- representation of the initial decimal conversion: 0.1 1Remaining fraction 1/9 in decimal is 0.1111111111111111 and NOT:0.1(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 6.1 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 10/2 Original numerator / PRIME number AS DECIMAL => 5.0 Original numerator / PRIME number AS FRACTION (not reduced) => 10/3 Original numerator / PRIME number AS DECIMAL => 3.3333333333333335 *** The Decimal presented: 6.1 The fraction part: 1 this is numerator: 1 this is denominator: 10 Elapsed time in seconds to reduce fraction: 1.654E-6 reduced numerator: 1 reduced denominator: 10 Fraction presented is: 1-3/9 Whole number before fraction: 1 ***2Mismatch in whole numbers**** Fraction has following whole number:1 Original decimal has following whole number:6 *********** 2Fraction provided in challenge: 1-3/9 might not be correctly reduced (1/10) 2Original reduced fraction provided 1-3/9 is non- representation of the initial decimal conversion: 0.1 1Remaining original fraction(1-3/9) in decimal is 0.3333333333333333 and NOT:0.1(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 6.1 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 3/2 Original numerator / PRIME number AS DECIMAL => 1.5 Original numerator / PRIME number AS FRACTION (not reduced) => 3/3 Original numerator / PRIME number AS DECIMAL => 1.0 *** The Decimal presented: 0.192367 The fraction part: 192367 this is numerator: 192367 this is denominator: 1000000 Elapsed time in seconds to reduce fraction: 0.024128368 reduced numerator: 192367 reduced denominator: 1000000 Fraction presented is: 5343/27775 No whole number before fraction 2Fraction provided in challenge: 5343/27775 might not be correctly reduced (192367/1000000) 2Original reduced fraction provided 5343/27775 is non- representation of the initial decimal conversion: 0.192367 1Remaining original fraction(5343/27775) in decimal is 0.19236723672367237 and NOT:0.192367(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.192367 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 5343/2 Original numerator / PRIME number AS DECIMAL => 2671.5 Original numerator / PRIME number AS FRACTION (not reduced) => 5343/3 Original numerator / PRIME number AS DECIMAL => 1781.0 *** The Decimal presented: 0.10973 The fraction part: 10973 this is numerator: 10973 this is denominator: 100000 Elapsed time in seconds to reduce fraction: 0.001117439 reduced numerator: 10973 reduced denominator: 100000 Fraction presented is: 823/7500 No whole number before fraction 2Fraction provided in challenge: 823/7500 might not be correctly reduced (10973/100000) 2Original reduced fraction provided 823/7500 is non- representation of the initial decimal conversion: 0.10973 1Remaining original fraction(823/7500) in decimal is 0.10973333333333334 and NOT:0.10973(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.10973 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 823/2 Original numerator / PRIME number AS DECIMAL => 411.5 Original numerator / PRIME number AS FRACTION (not reduced) => 823/3 Original numerator / PRIME number AS DECIMAL => 274.3333333333333 *** The Decimal presented: 0.343 The fraction part: 343 this is numerator: 343 this is denominator: 1000 Elapsed time in seconds to reduce fraction: 3.9482E-5 reduced numerator: 343 reduced denominator: 1000 Fraction presented is: 1/3 No whole number before fraction 2Fraction provided in challenge: 1/3 might not be correctly reduced (343/1000) 2Original reduced fraction provided 1/3 is non- representation of the initial decimal conversion: 0.343 1Remaining original fraction(1/3) in decimal is 0.3333333333333333 and NOT:0.343(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.343 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 1/2 Original numerator / PRIME number AS DECIMAL => 0.5 Original numerator / PRIME number AS FRACTION (not reduced) => 1/3 Original numerator / PRIME number AS DECIMAL => 0.3333333333333333 *** The Decimal presented: 0.01100550275137568784 The fraction part: 01100550275137568784 this is numerator: 1100550275137568784 this is denominator: 1000000000000000000 Numerator(1100550275137568784) considered too large for computation Numerator reduced to 9 digits wide: 110055027 Elapsed time in seconds to reduce fraction: 16.720532419 reduced numerator: 110055027 reduced denominator: 1000000000000000000 Fraction presented is: 22/1999 No whole number before fraction 2Fraction provided in challenge: 22/1999 might not be correctly reduced (110055027/1000000000000000000) 2Original reduced fraction provided 22/1999 is non- representation of the initial decimal conversion: 0.01100550275137568784 1Remaining original fraction(22/1999) in decimal is 0.011005502751375688 and NOT:0.01100550275137568784(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.01100550275137568784 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 22/2 Original numerator / PRIME number AS DECIMAL => 11.0 Original numerator / PRIME number AS FRACTION (not reduced) => 22/3 Original numerator / PRIME number AS DECIMAL => 7.333333333333333 *** The Decimal presented: 0.242424 The fraction part: 242424 this is numerator: 242424 this is denominator: 1000000 Elapsed time in seconds to reduce fraction: 0.001741877 reduced numerator: 30303 reduced denominator: 125000 Fraction presented is: 30303/125000 No whole number before fraction fraction provided in challenge is fully reduced: 30303/125000 Original fraction(30303/125000) provided is exact representation of the initial decimal conversion: 0.242424 ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.242424 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 30303/2 Original numerator / PRIME number AS DECIMAL => 15151.5 Original numerator / PRIME number AS FRACTION (not reduced) => 30303/3 Original numerator / PRIME number AS DECIMAL => 10101.0 *** The Decimal presented: 0.1875325 The fraction part: 1875325 this is numerator: 1875325 this is denominator: 10000000 Elapsed time in seconds to reduce fraction: 1.098353852 reduced numerator: 375065 reduced denominator: 2000000 Fraction presented is: 75013/400000 No whole number before fraction 2Fraction provided in challenge: 75013/400000 might not be correctly reduced (375065/2000000) 2Original reduced fraction provided 75013/400000 is non- representation of the initial decimal conversion: 0.1875325 1Remaining original fraction(75013/400000) in decimal is 0.1875325 and NOT:0.1875325(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.1875325 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 75013/2 Original numerator / PRIME number AS DECIMAL => 37506.5 Original numerator / PRIME number AS FRACTION (not reduced) => 75013/3 Original numerator / PRIME number AS DECIMAL => 25004.333333333332 *** The Decimal presented: 0.5 The fraction part: 5 this is numerator: 5 this is denominator: 10 Elapsed time in seconds to reduce fraction: 2.993E-6 reduced numerator: 1 reduced denominator: 2 Fraction presented is: 1/2 No whole number before fraction fraction provided in challenge is fully reduced: 1/2 Original fraction(1/2) provided is exact representation of the initial decimal conversion: 0.5 ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.5 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 1/2 Original numerator / PRIME number AS DECIMAL => 0.5 Original numerator / PRIME number AS FRACTION (not reduced) => 1/3 Original numerator / PRIME number AS DECIMAL => 0.3333333333333333 *** The Decimal presented: 1.25 The fraction part: 25 this is numerator: 25 this is denominator: 100 Elapsed time in seconds to reduce fraction: 4.482E-6 reduced numerator: 5 reduced denominator: 20 Fraction presented is: 1-1/4 Whole number before fraction: 1 3Mixed number fraction(1) and original decimal(1) have same whole number 2Fraction provided in challenge: 1-1/4 might not be correctly reduced (5/20) 2Original reduced fraction provided 1-1/4 is non- representation of the initial decimal conversion: 0.25 1Remaining original fraction(1-1/4) in decimal is 0.25 and NOT:0.25(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 1.25 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 1/2 Original numerator / PRIME number AS DECIMAL => 0.5 Original numerator / PRIME number AS FRACTION (not reduced) => 1/3 Original numerator / PRIME number AS DECIMAL => 0.3333333333333333 *** The Decimal presented: 0.0123 The fraction part: 0123 this is numerator: 123 this is denominator: 10000 Elapsed time in seconds to reduce fraction: 1.4543E-5 reduced numerator: 123 reduced denominator: 10000 Fraction presented is: 123/10000 No whole number before fraction fraction provided in challenge is fully reduced: 123/10000 Original fraction(123/10000) provided is exact representation of the initial decimal conversion: 0.0123 ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.0123 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 123/2 Original numerator / PRIME number AS DECIMAL => 61.5 Original numerator / PRIME number AS FRACTION (not reduced) => 123/3 Original numerator / PRIME number AS DECIMAL => 41.0 *** The Decimal presented: 0.0001 The fraction part: 0001 this is numerator: 1 this is denominator: 10000 Elapsed time in seconds to reduce fraction: 2.057E-6 reduced numerator: 1 reduced denominator: 10000 Fraction presented is: 1/10000 No whole number before fraction fraction provided in challenge is fully reduced: 1/10000 Original fraction(1/10000) provided is exact representation of the initial decimal conversion: 0.0001 ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.0001 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 1/2 Original numerator / PRIME number AS DECIMAL => 0.5 Original numerator / PRIME number AS FRACTION (not reduced) => 1/3 Original numerator / PRIME number AS DECIMAL => 0.3333333333333333 *** The Decimal presented: 0.999 Fraction presented is: 999/1000 No whole number before fraction 2Fraction provided in challenge: 999/1000 might not be correctly reduced (999/0) 2Original reduced fraction provided 999/1000 is non- representation of the initial decimal conversion: 0.999 ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: NOT Terminating fraction since reduced denominator is NOT divisble by prime factor of two or five Original numerator / PRIME number AS FRACTION (not reduced) => 999/2 Original numerator / PRIME number AS DECIMAL => 499.5 Original numerator / PRIME number AS FRACTION (not reduced) => 999/3 Original numerator / PRIME number AS DECIMAL => 333.0 *** The Decimal presented: 0.15 The fraction part: 15 this is numerator: 15 this is denominator: 100 Elapsed time in seconds to reduce fraction: 3.848E-6 reduced numerator: 3 reduced denominator: 20 Fraction presented is: 15/100 No whole number before fraction 2Fraction provided in challenge: 15/100 might not be correctly reduced (3/20) 2Original reduced fraction provided 15/100 is non- representation of the initial decimal conversion: 0.15 1Remaining original fraction(15/100) in decimal is 0.15 and NOT:0.15(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.15 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 15/2 Original numerator / PRIME number AS DECIMAL => 7.5 Original numerator / PRIME number AS FRACTION (not reduced) => 15/3 Original numerator / PRIME number AS DECIMAL => 5.0 *** The Decimal presented: 0.86 The fraction part: 86 this is numerator: 86 this is denominator: 100 Elapsed time in seconds to reduce fraction: 1.056E-5 reduced numerator: 43 reduced denominator: 50 Fraction presented is: 86/100 No whole number before fraction 2Fraction provided in challenge: 86/100 might not be correctly reduced (43/50) 2Original reduced fraction provided 86/100 is non- representation of the initial decimal conversion: 0.86 1Remaining original fraction(86/100) in decimal is 0.86 and NOT:0.86(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.86 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 86/2 Original numerator / PRIME number AS DECIMAL => 43.0 Original numerator / PRIME number AS FRACTION (not reduced) => 86/3 Original numerator / PRIME number AS DECIMAL => 28.666666666666668 *** The Decimal presented: 10.4 The fraction part: 4 this is numerator: 4 this is denominator: 10 Elapsed time in seconds to reduce fraction: 2.094E-6 reduced numerator: 2 reduced denominator: 5 Fraction presented is: 10-2/5 Whole number before fraction: 10 3Mixed number fraction(10) and original decimal(10) have same whole number fraction provided in challenge is fully reduced: 10-2/5 Original fraction(10-2/5) provided is exact representation of the initial decimal conversion: 10.4 ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: NOT Terminating fraction since reduced denominator is NOT divisble by prime factor of two or five Original numerator / PRIME number AS FRACTION (not reduced) => 2/2 Original numerator / PRIME number AS DECIMAL => 1.0 Original numerator / PRIME number AS FRACTION (not reduced) => 2/3 Original numerator / PRIME number AS DECIMAL => 0.6666666666666666 *** The Decimal presented: 23.5 The fraction part: 5 this is numerator: 5 this is denominator: 10 Elapsed time in seconds to reduce fraction: 5.204E-6 reduced numerator: 1 reduced denominator: 2 Fraction presented is: 23-1/2 Whole number before fraction: 23 3Mixed number fraction(23) and original decimal(23) have same whole number fraction provided in challenge is fully reduced: 23-1/2 Original fraction(23-1/2) provided is exact representation of the initial decimal conversion: 23.5 ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 23.5 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 1/2 Original numerator / PRIME number AS DECIMAL => 0.5 Original numerator / PRIME number AS FRACTION (not reduced) => 1/3 Original numerator / PRIME number AS DECIMAL => 0.3333333333333333 *** The Decimal presented: 0.75 The fraction part: 75 this is numerator: 75 this is denominator: 100 Elapsed time in seconds to reduce fraction: 4.1102E-5 reduced numerator: 15 reduced denominator: 20 Fraction presented is: 3/4 No whole number before fraction 2Fraction provided in challenge: 3/4 might not be correctly reduced (15/20) 2Original reduced fraction provided 3/4 is non- representation of the initial decimal conversion: 0.75 1Remaining original fraction(3/4) in decimal is 0.75 and NOT:0.75(original) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.75 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 3/2 Original numerator / PRIME number AS DECIMAL => 1.5 Original numerator / PRIME number AS FRACTION (not reduced) => 3/3 Original numerator / PRIME number AS DECIMAL => 1.0 *** The Decimal presented: 0.1111111111111111111 Recurring digit occurs: 19 times Recurring digit through entire decimal: 1 FULL EQUATION ONE: 0.1111111111111111111 FULL EQUATION TWO: 1.1111111111111111111 FULL EQUATION TWO A: 1.0 Fraction of recurring: 1/9 Fraction presented is: 3/27 No whole number before fraction 2Fraction provided in challenge: 3/27 might not be correctly reduced (1/9) 2Original reduced fraction provided 3/27 is non- representation of the initial decimal conversion: 0.1111111111111111111 ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: NOT Terminating fraction since reduced denominator is NOT divisble by prime factor of two or five Original numerator / PRIME number AS FRACTION (not reduced) => 3/2 Original numerator / PRIME number AS DECIMAL => 1.5 Original numerator / PRIME number AS FRACTION (not reduced) => 3/3 Original numerator / PRIME number AS DECIMAL => 1.0 *** The Decimal presented: 0.1111111111111111111 Fraction presented is: 1/9 No whole number before fraction 2Fraction provided in challenge: 1/9 might not be correctly reduced (1111111111111111111/0) 2Original reduced fraction provided 1/9 is non- representation of the initial decimal conversion: 0.1111111111111111111 ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: NOT Terminating fraction since reduced denominator is NOT divisble by prime factor of two or five Original numerator / PRIME number AS FRACTION (not reduced) => 1/2 Original numerator / PRIME number AS DECIMAL => 0.5 Original numerator / PRIME number AS FRACTION (not reduced) => 1/3 Original numerator / PRIME number AS DECIMAL => 0.3333333333333333 *** The Decimal presented: 0.33533 The fraction part: 33533 this is numerator: 33533 this is denominator: 100000 Elapsed time in seconds to reduce fraction: 0.081841129 reduced numerator: 33533 reduced denominator: 100000 Fraction presented is: 33533/100000 No whole number before fraction fraction provided in challenge is fully reduced: 33533/100000 Original fraction(33533/100000) provided is exact representation of the initial decimal conversion: 0.33533 ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: Terminating fraction since reduced denominator is divisble by prime number of two or five 0.33533 is a periodic number Original numerator / PRIME number AS FRACTION (not reduced) => 33533/2 Original numerator / PRIME number AS DECIMAL => 16766.5 Original numerator / PRIME number AS FRACTION (not reduced) => 33533/3 Original numerator / PRIME number AS DECIMAL => 11177.666666666666 *** The Decimal presented: 5.1111111111111111111 Fraction presented is: 4-64/9 Whole number before fraction: 4 Original whole number from fraction (numerator/denominator):7 remaining numerator: 1 remaining fraction: 1/9 Fraction provided in challenge is improper: 4-64/9 Mixed number fraction is: 11-1/9 ***Mismatch in whole numbers**** Fraction has following whole number:11 Original decimal has following whole number:5 *********** 2Fraction provided in challenge: 1/9 might not be correctly reduced (1111111111111111111/0) Discrepency above is due to conversion from improper=>proper fraction 1Original fraction(4-64/9)has been changed to proper fraction(11-1/9) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: NOT Terminating fraction since reduced denominator is NOT divisble by prime factor of two or five Original numerator / PRIME number AS FRACTION (not reduced) => 64/2 Original numerator / PRIME number AS DECIMAL => 32.0 Original numerator / PRIME number AS FRACTION (not reduced) => 64/3 Original numerator / PRIME number AS DECIMAL => 21.333333333333332 *** The Decimal presented: 5.1111111111111111111 Recurring digit occurs: 19 times Recurring digit through entire decimal: 1 FULL EQUATION ONE: 0.1111111111111111111 FULL EQUATION TWO: 1.1111111111111111111 FULL EQUATION TWO A: 1.0 Fraction of recurring: 1/9 Fraction presented is: 64/9 No whole number before fraction Original whole number from fraction (numerator/denominator):7 remaining numerator: 1 remaining fraction: 1/9 Fraction provided in challenge is improper: 64/9 Mixed number fraction is: 7-1/9 ***Mismatch in whole numbers**** Fraction has following whole number:7 Original decimal has following whole number:5 *********** 2Fraction provided in challenge: 1/9 might not be correctly reduced (1/9) Discrepency above is due to conversion from improper=>proper fraction 1Original fraction(64/9)has been changed to proper fraction(7-1/9) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: NOT Terminating fraction since reduced denominator is NOT divisble by prime factor of two or five Original numerator / PRIME number AS FRACTION (not reduced) => 64/2 Original numerator / PRIME number AS DECIMAL => 32.0 Original numerator / PRIME number AS FRACTION (not reduced) => 64/3 Original numerator / PRIME number AS DECIMAL => 21.333333333333332 *** The Decimal presented: 7.1111111111111111111 Fraction presented is: 64/9 No whole number before fraction Original whole number from fraction (numerator/denominator):7 remaining numerator: 1 remaining fraction: 1/9 Fraction provided in challenge is improper: 64/9 Mixed number fraction is: 7-1/9 1Mixed number fraction(0) and original decimal(7) have same whole number 2Fraction provided in challenge: 1/9 might not be correctly reduced (1111111111111111111/0) Discrepency above is due to conversion from improper=>proper fraction 1Original fraction(64/9)has been changed to proper fraction(7-1/9) ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: NOT Terminating fraction since reduced denominator is NOT divisble by prime factor of two or five Original numerator / PRIME number AS FRACTION (not reduced) => 64/2 Original numerator / PRIME number AS DECIMAL => 32.0 Original numerator / PRIME number AS FRACTION (not reduced) => 64/3 Original numerator / PRIME number AS DECIMAL => 21.333333333333332 *** The Decimal presented: 7.1111111111111111111 Recurring digit occurs: 19 times Recurring digit through entire decimal: 1 FULL EQUATION ONE: 0.1111111111111111111 FULL EQUATION TWO: 1.1111111111111111111 FULL EQUATION TWO A: 1.0 Fraction of recurring: 1/9 Fraction presented is: 7-1/9 Whole number before fraction: 7 3Mixed number fraction(7) and original decimal(7) have same whole number fraction provided in challenge is fully reduced: 7-1/9 Original fraction(7-1/9) provided is exact representation of the initial decimal conversion: 7.1111111111111111111 ************************************************ This will just be final part of the code... Since several prime numbers have been generated, I will use the existing numerator And store the results in a String array: Numerator/prime number AS fraction and Numerator/prime number AS decimal and store results. IT IS TO GET A FEEL OF DIFFERENT PATTERNS AS EXPLORED IN DOCUMENTATION! This will provide a sample should I wish to populate initial array also! ************************************************** CHECK TO SEE IF ORIGINAL FRACTION IS TERMINATING: NOT Terminating fraction since reduced denominator is NOT divisble by prime factor of two or five Original numerator / PRIME number AS FRACTION (not reduced) => 1/2 Original numerator / PRIME number AS DECIMAL => 0.5 Original numerator / PRIME number AS FRACTION (not reduced) => 1/3 Original numerator / PRIME number AS DECIMAL => 0.3333333333333333 ** Process exited - Return Code: 0 **