Skip to content

Commit 170ed65

Browse files
committed
fix: correct FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 4df1f8c commit 170ed65

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

Diff for: lib/node_modules/@stdlib/constants/float64/max-safe-nth-double-factorial/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The maximum [safe][safe-integers] nth [double factorial][double-factorial] when
3939
<!-- eslint-disable id-length -->
4040

4141
```javascript
42-
var bool = ( FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL === 300 );
42+
var bool = ( FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL === 29 );
4343
// returns true
4444
```
4545

@@ -71,7 +71,7 @@ function factorial2( n ) {
7171

7272
var v;
7373
var i;
74-
for ( i = 0; i < 400; i++ ) {
74+
for ( i = 0; i < 50; i++ ) {
7575
v = factorial2( i );
7676
if ( i > FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL ) {
7777
console.log( 'Unsafe: %d', v );

Diff for: lib/node_modules/@stdlib/constants/float64/max-safe-nth-double-factorial/docs/repl.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Examples
77
--------
88
> {{alias}}
9-
300
9+
29
1010

1111
See Also
1212
--------

Diff for: lib/node_modules/@stdlib/constants/float64/max-safe-nth-double-factorial/docs/types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @example
2525
* var max = FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL;
26-
* // returns 300
26+
* // returns 29
2727
*/
2828
declare const FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL: number;
2929

Diff for: lib/node_modules/@stdlib/constants/float64/max-safe-nth-double-factorial/examples/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function factorial2( n ) {
3333

3434
var v;
3535
var i;
36-
for ( i = 0; i < 400; i++ ) {
36+
for ( i = 0; i < 50; i++ ) {
3737
v = factorial2( i );
3838
if ( i > FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL ) {
3939
console.log( 'Unsafe: %d', v );

Diff for: lib/node_modules/@stdlib/constants/float64/max-safe-nth-double-factorial/include/stdlib/constants/float64/max_safe_nth_double_factorial.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
* limitations under the License.
1717
*/
1818

19-
#ifndef STDLIB_CONSTANTS_FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL
20-
#define STDLIB_CONSTANTS_FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL
19+
#ifndef STDLIB_CONSTANTS_FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL_H
20+
#define STDLIB_CONSTANTS_FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL_H
2121

2222
/**
2323
* Macro for the maximum safe nth double factorial when stored in double-precision floating-point format.
2424
*/
25-
#define STDLIB_CONSTANT_FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL 300
25+
#define STDLIB_CONSTANT_FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL 29
2626

2727
#endif // !STDLIB_CONSTANTS_FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL_H

Diff for: lib/node_modules/@stdlib/constants/float64/max-safe-nth-double-factorial/lib/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
* @example
2828
* var FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL = require( '@stdlib/constants/float64/max-safe-nth-double-factorial' );
29-
* // returns 300
29+
* // returns 29
3030
*/
3131

3232

@@ -37,11 +37,11 @@
3737
*
3838
* @constant
3939
* @type {integer}
40-
* @default 300
40+
* @default 29
4141
* @see [double factorial]{@link https://en.wikipedia.org/wiki/Double_factorial}
4242
* @see [IEEE 754]{@link https://en.wikipedia.org/wiki/IEEE_754-1985}
4343
*/
44-
var FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL = 300|0; // eslint-disable-line id-length
44+
var FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL = 29|0; // eslint-disable-line id-length
4545

4646

4747
// EXPORTS //

Diff for: lib/node_modules/@stdlib/constants/float64/max-safe-nth-double-factorial/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ tape( 'main export is a number', function test( t ) {
3232
t.end();
3333
});
3434

35-
tape( 'the exported value is 300', function test( t ) {
36-
t.strictEqual( FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL, 300, 'returns expected value' );
35+
tape( 'the exported value is 29', function test( t ) {
36+
t.strictEqual( FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL, 29, 'returns expected value' );
3737
t.end();
3838
});

0 commit comments

Comments
 (0)