Skip to content

Commit d2ac3b9

Browse files
fix: edited decimal value
1 parent 1887df0 commit d2ac3b9

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/geometric/cdf/src

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/dists/geometric/cdf/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ double stdlib_base_dists_geometric_cdf( const double x, const double p ) {
6464
) {
6565
return 0.0/0.0; // NaN
6666
}
67-
if ( x < 0 ) {
67+
if ( x < 0.0 ) {
6868
return 0.0;
6969
}
7070
if( x == STDLIB_CONSTANT_FLOAT64_PINF ){
7171
return 1.0;
7272
}
73-
return 1.0 - stdlib_base_pow( 1.0 - p, stdlib_base_floor( x ) + 1 );
73+
return 1.0 - stdlib_base_pow( 1.0 - p, stdlib_base_floor( x ) + 1.0 );
7474
}

0 commit comments

Comments
 (0)