Skip to content

Commit 1ecdfd9

Browse files
authored
chore: add NaN comment
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent e1fb54d commit 1ecdfd9

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/bernoulli/mode/src

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/stats/base/dists/bernoulli/mode/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ double stdlib_base_dists_bernoulli_mode( const double p ) {
3939
p < 0.0 ||
4040
p > 1.0
4141
) {
42-
return 0.0 / 0.0;
42+
return 0.0 / 0.0; // NaN
4343
}
4444
return ( p <= 0.5 ) ? 0 : 1;
4545
}

0 commit comments

Comments
 (0)