Dylan Rathbone created JRUBY-6565:
-------------------------------------

             Summary: Math.log10(1000) does not return '3.0'
                 Key: JRUBY-6565
                 URL: https://jira.codehaus.org/browse/JRUBY-6565
             Project: JRuby
          Issue Type: Bug
          Components: Application Error
    Affects Versions: JRuby 1.6.7
         Environment: Linux WW637V18660A 2.6.32-37-generic-pae #81-Ubuntu
            Reporter: Dylan Rathbone
             Fix For: JRuby 1.6.7


JRuby 1.6.7 is not returning the correct result when 'Math.log10(1000)' is 
executed. See code snippet below:

{code}
$ irb
jruby-1.6.7 :001 > Math.log10(1000)
 => 2.9999999999999996 
{code}

What should be returned is in fact 3.0. 

The same calculation performed using other variants of JRuby below...

JRuby 1.6.4:
{code}
jruby-1.6.4 :002 >   Math.log10(1000)
 => 3.0
{code}

JRuby 1.6.5:
{code}
jruby-1.6.5 :001 > Math.log10(1000)
 => 3.0
{code}


System details below...

{code}
$ rvm info

jruby-1.6.7@j2oomee:

  system:
    uname:       "Linux WW637V18660A 2.6.32-37-generic-pae #81-Ubuntu SMP Fri 
Dec 2 22:24:22 UTC 2011 i686 GNU/Linux"
    bash:        "/bin/bash => GNU bash, version 4.1.5(1)-release 
(i486-pc-linux-gnu)"
    zsh:         " => not installed"

  rvm:
    version:      "rvm 1.9.2 by Wayne E. Seguin (wayneeseg...@gmail.com) 
[https://rvm.beginrescueend.com/]";

  ruby:
    interpreter:  "jruby"
    version:      "1.6.7"
    date:         "2012-02-22"
    platform:     "linux-i386-java"
    patchlevel:   "TM"
    full_version: "jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (Java 
HotSpot(TM) Server VM 1.6.0_22) [linux-i386-java]"

  homes:
    gem:          "/home/drathbon/.rvm/gems/jruby-1.6.7@j2oomee"
    ruby:         "/home/drathbon/.rvm/rubies/jruby-1.6.7"

  binaries:
    ruby:         "/home/drathbon/.rvm/rubies/jruby-1.6.7/bin/ruby"
    irb:          "/home/drathbon/.rvm/rubies/jruby-1.6.7/bin/irb"
    gem:          "/home/drathbon/.rvm/rubies/jruby-1.6.7/bin/gem"
    rake:         "/home/drathbon/.rvm/gems/jruby-1.6.7@j2oomee/bin/rake"
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to