Skip to content

Array#pack does not support java numbers #942

@byteit101

Description

@byteit101

I would have expected the following code to work as it is given a double, but in java form instead of ruby form

> [java.lang.Double.new(0.1)].pack("D")
TypeError: wrong argument type Java::JavaLang::Double (expected Float)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions