Talk:Pi: Difference between revisions

217 bytes added ,  12 years ago
m
I don't know Java. Could you set the precision to a high number of digits?
m (I don't know Java. Could you set the precision to a high number of digits?)
Line 40:
::Every solution on the page will come to a limit, because of the nature of the task. With GUISS, the limit is 16 digits, other solutions may stop after a few thousand digits, but they will stop.[[User:Markhobley|Markhobley]] 01:27, 24 July 2011 (UTC)
:::I'm not sure using the windows calculator really fits the task because (as far as I know) it doesn't actually calculate anything--it spits out a stored value. Otherwise I could say "System.out.println(Math.PI);" for Java and call it a day. That feels like cheating. --[[User:Mwn3d|Mwn3d]] 04:50, 24 July 2011 (UTC)
::::I don't know Java. Could you set the precision to a high number of digits, and then System.out.println(Math.PI)? I think a two line solution would be cool. [[User:Markhobley|Markhobley]] 11:23, 24 July 2011 (UTC)
 
:::In no way does the GUISS solution fit the spirit of the task and should be removed. In what way does it give ''successive'' digits of Pi, "until aborted by the user"? The task description is clearly asking that you use a routine that generates the digits of Pi in sequence - GUISS does not ensure that and so should be removed. The GUISS example does not aid language comparison - it stands out as an anomaly. --[[User:Paddy3118|Paddy3118]] 05:37, 24 July 2011 (UTC)