stdlib-js / stdlib-js/stdlib

Why is `0.0 / 0.0` preferred over using NaN

Offen
#11,028 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Question
Vorherrschende Sprache
JavaScript
Sterne
6k
Forks
1.3k
Ø Merge
1 T. 3 Std.
Gemergte PRs (30 T.)
611

Beschreibung

### Description

Encountered an error when compiling native add-ons with MSVC.

Why do we prefer returning `0.0 / 0.0` instead of `NAN` from ``?

Example:

https://github.com/stdlib-js/stdlib/blob/a1f8442b4ed11aceb97c2b5e6e7e8fdc18d8317b/lib/node_modules/%40stdlib/stats/base/dists/negative-binomial/skewness/src/main.c#L42

### Related Issues

_No response_

### Questions

No.

### Demo

_No response_

### Reproduction

```shell

```

### Expected Results

```shell

```

### Actual Results

```shell

```

### Version

_No response_

### Environments

Node.js

### Browser Version

_No response_

### Node.js / npm Version

_No response_

### Platform

_No response_

### Checklist

- [x] Read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [x] Searched for existing issues and pull requests.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.