Skip to content

INF is rendered wrong. #102

@python-processing-unit

Description

@python-processing-unit

According to the specification section 4.3.2:

When numeric values are converted to STR, they MUST render in their own base and MUST include the base prefix. INF, -INF, and NaN render without a base prefix.

In the implementation, however, when an INF or an -INF is converted to STR, it renders as NaN.

Prefix REPL. Enter statements, blank line to run buffer.
>>> PRINT(INF)
NaN
>>> PRINT(-INF)
NaN
>>> PRINT(STR(INF))
NaN
>>> PRINT(STR(-INF))
NaN
>>>

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions