Skip to content

Float number set from Python differs from what appears from ObjectScript #13

@daimor

Description

@daimor

Describe the bug
A clear and concise description of what the bug is.

iris version/image
IRIS for UNIX (Ubuntu Server LTS for ARM64 Containers) 2023.3 (Build 231U) Thu Sep 14 2023 18:17:40 EDT

python version
iris session iris

To Reproduce

>>> iris.gref('tmp')
iris.gref('^tmp')
>>> iris.gref('tmp')[0]=123
>>> iris.gref('tmp')[0]=1.23
>>> iris.gref('tmp')[0]
1.23
>>>
irisowner@fd87b0a24405:~$ iris session iris

Node: fd87b0a24405, Instance: IRIS

USER>zw ^tmp
^tmp(0)=1.229999999999999982

USER>w $zv
IRIS for UNIX (Ubuntu Server LTS for ARM64 Containers) 2023.3 (Build 231U) Thu Sep 14 2023 18:17:40 EDT

Expected behavior
expected to have the same value in Python and in ObjectScript

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions