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

Can't take .WHAT of sufficiently decimal-endowed Rat in Rakudo #1515

Closed
p6rt opened this issue Feb 16, 2010 · 6 comments
Closed

Can't take .WHAT of sufficiently decimal-endowed Rat in Rakudo #1515

p6rt opened this issue Feb 16, 2010 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 16, 2010

Migrated from rt.perl.org#72870 (status was 'resolved')

Searchable as RT72870$

@p6rt
Copy link
Author

p6rt commented Feb 16, 2010

From @masak

<diakopter> rakudo​: say .88888888888.WHAT
<p6eval> rakudo 65e2d3​: OUTPUT«No applicable candidates found to
dispatch to for 'infix​:<div>' [...]
* masak submits rakudobug

The limit seems to go at 11 decimals. Those who know stuff about float
representations make of that what they want. :)

@p6rt
Copy link
Author

p6rt commented Jun 28, 2010

From @bbkr

on Kiev build

$ perl6 -e 'say .88888888888.WHAT'
Rat()

adding tests...

@p6rt
Copy link
Author

p6rt commented Jun 28, 2010

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jun 28, 2010

From @bbkr

tests added in S32-num/rat.t

@p6rt
Copy link
Author

p6rt commented Jun 28, 2010

@bbkr - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jun 28, 2010
@p6rt
Copy link
Author

p6rt commented Jun 28, 2010

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S32-num/rat.t

commit f860b4261e301e06c21891cb8514f34a2206aaae
Author​: bbkr <bbkr@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Mon Jun 28 22​:53​:11 2010 +0000

  [t/spec] tests for RT #​72870 Cant take .WHAT of sufficiently decimal-endowed Rat in Rakudo
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;31493 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S32-num/rat.t b/t/spec/S32-num/rat.t
index 45d6964..0f3b398 100644
--- a/t/spec/S32-num/rat.t
+++ b/t/spec/S32-num/rat.t
@@ -220,6 +220,9 @@ ok Rat.new() == 0, 'Rat.new() is 0';
 
 ok 16/5 eqv 16/5, 'infix:<eqv> works with rats';
 
+# RT #72870
+is .88888888888.WHAT, 'Rat()', 'WHAT works on Rat created from 11 digit decimal fraction';
+
 done_testing;
 
 # vim: ft=perl6

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant