Skip to content

ArbitraryPrecisionFloatForDolphin

Nicolas Cellier edited this page Feb 28, 2016 · 3 revisions

Introduction

ArbitraryPrecisionFloat is available in Dolphin Smalltalk under the form of a few .pac packages.

Details

What do you need to play with ArbitraryPrecisionFloat in Dolphin ?

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).

Installation

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.

Previous Dolphin versions

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.

Clone this wiki locally