# Force PC to calculate equation to infinite decimal places?

I need a software or a command line to display the irrational number `22/7` indefinitely.

When i use `calc`, I'm shown a finite number of decimal places:

``````~\$ calc 22/7
~3.14285714285714285714
``````

How can I force my PC to calculate forever?

• Do you want to know more digits of 22/7 or do you just want to computer to calculate any number? Commented Jun 1, 2014 at 13:49
• I can search google for more, but it's a homework, so I need the code or an app Commented Jun 1, 2014 at 13:50
• Is there a limit? Do you know any programming languages? Commented Jun 1, 2014 at 13:52
• This is hard, does it never repeat? I can paste it here: 3.142857142857142793701541449991054832935333251953125 is to 51 dp, thats about as long as you can get I think, as on a 64 bit computer to do with limits of accuracy...
– Tim
Commented Jun 1, 2014 at 13:53
• I dont rly know any programming languages :( Commented Jun 1, 2014 at 13:55

``````bc <<< 'scale=100;22/7'
`scale=<num>` means the number of digits you want after the comma `22/7` you calculation