From tony at metracom.com Thu Sep 21 01:09:46 2017 From: tony at metracom.com (Tony) Date: Thu, 21 Sep 2017 01:09:46 -0700 Subject: [Oc-pm] OC PM Perl meeting September 25th @ 7pm Message-ID: <8391760d-7697-6c29-97b4-39afb137abcf@metracom.com> OC Perl Mongers, this months Perl meeting will be on Monday the 25th @ 7pm. We could use a volunteer speaker. The September programming challenge is posted on the website. You get 10 points for every programming language you can solve it with. Here's the list: https://dzone.com/articles/big-list-256-programming See you next week, http://oc.pm.org Tony From bobmath11 at icloud.com Tue Sep 26 11:25:25 2017 From: bobmath11 at icloud.com (Bob Mathews) Date: Tue, 26 Sep 2017 11:25:25 -0700 Subject: [Oc-pm] perl6 Message-ID: Perl6 Deep Dive p58: > Thus, any Rat number is a rational value equal to the division N/D. The integer numerator part is a value that can be arbitrarily long. The denominator part is a 64-bit integer. FOR THE LOVE OF GOD, WHY? This ?optimization? of limiting the denominator to 64 bits makes the Rat type useless for my purposes. It silently converts to a double-precision float if the denominator overflows. -bob From bobmath11 at icloud.com Wed Sep 27 09:15:56 2017 From: bobmath11 at icloud.com (Bob Mathews) Date: Wed, 27 Sep 2017 09:15:56 -0700 Subject: [Oc-pm] perl6 In-Reply-To: References: Message-ID: > On Sep 26, 2017, at 11:25 AM, Bob Mathews wrote: > Perl6 Deep Dive p58: >> Thus, any Rat number is a rational value equal to the division N/D. The integer numerator part is a value that can be arbitrarily long. The denominator part is a 64-bit integer. So it turns out that: a) The book is incomplete. FatRat doesn?t have this behavior, but it?s not mentioned. I thought we were diving deep here. b) The book is wrong. It is possible to create a Rat with a denominator larger than 64 bits, though it ?usually? enforces that limit. c) Perl6 is buggy. No surprise here. > say 1.111111111111111111111 1.11111111111111111604544 -bob -------------- next part -------------- An HTML attachment was scrubbed... URL: