Skip to content

Floating point issue #2191

@CodeMinister2008

Description

@CodeMinister2008

Werid floating point issue in when using python app

The python shell displays numbers like 9.8 as a floating-point error and it can't be fixed for some reason (even when using the round() function, it still operates and acts like the normal number, it just displays it weird

Screenshots

image

To Reproduce

1.Go to python app.
2. just simply type in 9.8 into the python shell and press enter (Even works with 9.8 or any of the other numbers with factors of 10).

Expected behavior

print(9.8)
(Output) 9.8

Environment

Software version: 22.2.1
Happens on: Online simulator and actual device

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions