-
Notifications
You must be signed in to change notification settings - Fork 0
ArbitraryPrecisionFloatForDolphin
ArbitraryPrecisionFloat is available in Dolphin Smalltalk under the form of a few .pac packages.
What do you need to play with ArbitraryPrecisionFloat in Dolphin ?
- Dolphin version 7 that you can get from http://www.object-arts.com/ or directly from github https://github.com/dolphinsmalltalk
- the Dolphin package ArbitraryPrecisionFloat.pac downloadable from this site
Tests are in a separate package named ArbitraryPrecisionFloatTests.pac.
Another package provides a Number Parser (NumberParser.pac), which can be extended to read decimal representation of ArbitraryPrecisionFloat (ArbitraryPrecisionFloatReader.pac).
It is recommended to install the packages into a subdirectory of Dolphin main repository. I use to clone the git repository under 3rdParty\arbitrary-precision-float\
Once Dolphin image is launched, simply load the 3 arbitrary precision float packages from the package manager, et voila.
The package was known to work with previous versions of Dolphin 5.1 and X6 from http://www.object-arts.com/
But note that there was a bug (#2285) in quoAndRem: primitive for large integers that prevented the tests to correctly pass (check for thread "LargeInteger strange results" in comp.lang.smalltalk.dolphin in November 2010 i.e. https://groups.google.com/forum/#!topic/comp.lang.smalltalk.dolphin/MACVqm88XRA)
This appears to be fixed in Dolphin 7.