Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@SergeStinckwich
Created March 13, 2015 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SergeStinckwich/ce36d6f0039639685baf to your computer and use it in GitHub Desktop.
Save SergeStinckwich/ce36d6f0039639685baf to your computer and use it in GitHub Desktop.
Pi Day in Pharo
Gofer new
url: 'http://www.smalltalkhub.com/mc/SergeStinckwich/SciSmalltalk/main';
package: 'ConfigurationOfSciSmalltalk';
load.
(Smalltalk at: #ConfigurationOfSciSmalltalk) loadDevelopment.
pi := (1 asArbitraryPrecisionFloatNumBits: 129) pi.
str := (String new: 32) writeStream.
pi absPrintExactlyOn: str base: 10.
str contents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment