New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggest polymod for bases > 36 (9123607.base(37)) #6547
Comments
From @AlexDanielCode: Result: The error message can suggest .polymod, here is an example: 9123607.polymod(37 xx *).reverse # (4 32 4 15 36) |
From @lizmat
Perhaps .base(37) should just use .polymod under the hood? |
The RT System itself - Status changed from 'new' to 'open' |
From @tbrowderOn Sun, 24 Sep 2017 23:21:11 -0700, alex.jakimenko@gmail.com wrote:
For what it's worth, my module Number::More currently provides bases 37..64. |
From @tbrowderOn Mon, 25 Sep 2017 02:01:55 -0700, elizabeth wrote:
For what it's worth, my module Number::More currently provides bases 37..64. |
From @AlexDaniel:S let's please not. See also this discussion: https://irclog.perlgeek.de/perl6/2017-09-25#i_15211785 I'm strongly against making .base return garbage for bases >36. Polymod returns a list of integers, .base returns a *string* with the number using some alphabet. I don't understand why we want to break this simple stuff so much. However, there are other options: On 2017-09-25 02:01:55, elizabeth wrote:
|
From @geekosaurOn Mon, Sep 25, 2017 at 10:53 AM, Aleks-Daniel Jakimenko-Aleksejev via RT <
I'm in favor of the original suggestion: point the user to polymod. One way -- |
Migrated from rt.perl.org#132156 (status was 'open')
Searchable as RT132156$
The text was updated successfully, but these errors were encountered: