8000 np.rint(-0.0) wrong on Windows32 · Issue #7004 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content 8000
np.rint(-0.0) wrong on Windows32 #7004
@pitrou

Description

@pitrou

np.rint(-0.0) correctly returns -0.0 on Linux and Windows64, but not on Windows32:

Python 3.4.4 |Continuum Analytics, Inc.| (default, Jan 11 2016, 13:44:19) [MSC v
.1600 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 4.0.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import numpy as np

In [2]: np.floor(-0.0)
Out[2]: -0.0

In [3]: np.rint(0.0)
Out[3]: 0.0

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

      0