Your computer program is a classic example of GIGO. Even if your program worked properly, it will never determine if a number is irrational. At best, it will give the fractional equivalent of a decimal proving it rational. It should always do that, because you are entering a finite number of decimals. You coded it to say otherwise, but that doesn’t make it true.
Computers are not magical machines Mr. BB. Computer coding isn’t the same as an incantation you’d say to a crystal ball. Computers do what you tell them to do; that’s not the same as what you want them to do.
I’m not the only one who knows you as an incompetent mathamation and coder. I’m not your first Troll, either. That honor goes to Dragonlance. He’s one brilliant kid, for sure.
Here are two of his comments:
... One more thing computers and calculators can’t cope because they are machines. They don’t think or love or hate or give a rat’sass about anything. That is a good thing because it would never do anything for you. Only humans cope. Well some humans do. You do not know much about computers or calculators do you?—Source
He has several troll posts directed toward you. He addresses and refers to you as “Anol Retentive” sometimes adding the “constipated hog” description, and as the “banker man.” One time he suggested, “You should go lock you self in a bank vault until you feel better. Make sure the time clock is set for next year.” Source
Sounds like good advice! While you are in there, you should study up on irrational numbers and computer programming.
GA