Created
March 13, 2015 15:43
-
-
Save SergeStinckwich/ce36d6f0039639685baf to your computer and use it in GitHub Desktop.
Pi Day in Pharo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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