Skip to content

NaN > 0 and NaN == 0 #167

@gopherbot

Description

@gopherbot

by hnakamur:

What steps will reproduce the problem?

1. Run the attached file.

What is the expected output? What do you see instead?

It should print nothing.
Instead, it prints:
NaN > 0 is true, should be false.
NaN == 0 is true, should be false.

What is your $GOOS?  $GOARCH?

$ env | egrep '(GOOS|GOARCH)'
GOARCH=amd64
GOOS=darwin

Which revision are you sync'ed to?  (hg log -l 1)

$ env LANG=C hg log -l 1
changeset:   4037:cd0140653802
tag:         tip
user:        David Titarenco <david.titarenco@gmail.com>
date:        Fri Nov 13 18:06:47 2009 -0800
summary:     Created new Conn.Flush() public method so the fd pipeline 
can be drained arbitrarily by the user.

Please provide any additional information below.

Attachments:

  1. nan.go (286 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions