Skip to content

Trig functions not marked NaN-able even though they return NaN at Infinity or -Infinity #102

Closed
@Tacodiva

Description

@Tacodiva

This block:

image

returns NaN in TurboWarp but 0 in Scratch, because sin, cos and tan return can NaN when their input is Infinity or -Infinity, but are not marked as able to be NaN.

See demo project 773375319 on Scratch and TurboWarp.

Metadata

Metadata

Assignees

No one assigned

    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