Skip to content

Double scalars not handled by Octave #138

@blink1073

Description

@blink1073

Simple test case yields 1 instead of 1.5:

o = Octave()
o.start()
o.run_code('a=1.5')
o.get_variable('a')

This appears to be a limitation when calling javaObject('org.json.JSONObject').toString() in Octave. I am using 3.8.1 in Ubuntu 14.04. I traced json_dump and calling toString() on the javaObject('java.lang.Double', value) object works as expected, but not when it is rolled into the full JSON object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions