Re: [Pharo-project] [squeak-dev] Fun with spock (NativeBoost FFI)
On 5/14/12 8:06 PM, Lawson English wrote:
On 5/14/12 8:02 PM, Lawson English wrote:
OK, getting closer. However I'm still not quite getting what I expect:
f1 := GMPfWrapper new. f2 := GMPfWrapper new. f3 := GMPfWrapper new. f1 set_ui: 50. f2 set_ui: 50. f3 set_ui:50. (f3 +f2) asString ==> '1
Doh, its working just fine. the function only returns the minimum digits required and returns the exponent in the expptr, so 1 has an expptr value of 3, making it 100.0... Sigh. L. -- Squeak from the very start (introduction to Squeak and Pharo Smalltalk for the (almost) complete and compleate beginner). https://www.youtube.com/playlist?list=PL6601A198DF14788D&feature=view_all
On 15 May 2012 09:42, Lawson English <lenglish5@cox.net> wrote:
On 5/14/12 8:06 PM, Lawson English wrote:
On 5/14/12 8:02 PM, Lawson English wrote:
OK, getting closer. However I'm still not quite getting what I expect:
f1 := GMPfWrapper new. f2 := GMPfWrapper new. f3 := GMPfWrapper new. f1 set_ui: 50. f2 set_ui: 50. f3 set_ui:50. (f3 +f2) asString ==> '1
Doh, its working just fine. the function only returns the minimum digits required and returns the exponent in the expptr, so 1 has an expptr value of 3, making it 100.0...
Sigh.
Right. Yeah, it works just fine, except there is no description what is exp stands for. So you have to guess or look for example code :)
L.
-- Best regards, Igor Stasenko.
participants (2)
-
Igor Stasenko -
Lawson English