$ jruby -v
jruby 9.2.9.0 (2.5.7) 2019-10-30 458ad3e OpenJDK 64-Bit Server VM 12.0.2+10 on 12.0.2+10 +jit [darwin-x86_64]
$ uname -a
Darwin Apple197 17.7.0 Darwin Kernel Version 17.7.0: Sun Jun 2 20:31:42 PDT 2019; root:xnu-4570.71.46~1/RELEASE_X86_64 x86_64
$ jruby -v
jruby 9.2.9.0 (2.5.7) 2019-10-30 458ad3e OpenJDK 64-Bit Server VM 12.0.2+10 on 12.0.2+10 +jit [darwin-x86_64]
$ irb
irb(main):001:0> 0.0174532925199432957r
Traceback (most recent call last):
5: from /Users/kazuma.furuhashi/.rbenv/versions/jruby-9.2.9.0/bin/irb:13:in `<main>'
4: from org/jruby/RubyKernel.java:1193:in `catch'
3: from org/jruby/RubyKernel.java:1193:in `catch'
2: from org/jruby/RubyKernel.java:1446:in `loop'
1: from org/jruby/RubyKernel.java:1052:in `eval'
SyntaxError ((irb):1: Rational (174532925199432957/1E+19) out of range.)
0.0174532925199432957r
# FYI, This is the expected result.
irb(main):002:0> 0.017453292519943295r
=> (17453292519943295/1000000000000000000)
The text was updated successfully, but these errors were encountered:
Environment
Expected Behavior
I expect the same result as CRuby below.
Here is our use case. We want to convert from Degree to Radian.
https://github.com/red-data-tools/red-colors/blob/9d97f82043c05b5a6d460efc84cb4cf5e8c4d1bf/lib/colors/convert.rb#L56
Actual Behavior
The text was updated successfully, but these errors were encountered: