Skip to content
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

.norm “Returns a normalized Rational object, i.e. with positive denominator” #2463

Closed
AlexDaniel opened this issue Nov 15, 2018 · 0 comments
Labels
docs Documentation issue (primary issue type) update part of "docs" - indicates this is an update for an existing section; rewrite, clarification, etc.

Comments

@AlexDaniel
Copy link
Member

https://docs.perl6.org/type/Rat#(Rational)_method_norm

Returns a normalized Rational object, i.e. with positive denominator, and numerator and denominator coprime.

my $x = 0/0; dd $x.norm # OUTPUT: «<0/0>␤»

0 is not positive.

@JJ JJ added docs Documentation issue (primary issue type) update part of "docs" - indicates this is an update for an existing section; rewrite, clarification, etc. easy to resolve labels Nov 15, 2018
@JJ JJ closed this as completed in dc30eee Nov 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type) update part of "docs" - indicates this is an update for an existing section; rewrite, clarification, etc.
Projects
None yet
Development

No branches or pull requests

2 participants