Skip to content

Math.log10 should use Java's log10 method #4089

@enebo

Description

@enebo
jruby -e 'p Math.log10(1_000_000)'
5.999999999999999

because we use Java's generic log method. If I switch us to java.lang.Math.log10 when in base 10 we get the expected 6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions