Skip to content

Commit 61a0888

Browse files
feat: fix the value of ln-two-pi
--- 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: passed - task: lint_license_headers status: passed ---
1 parent 3379b4c commit 61a0888

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

lib/node_modules/@stdlib/constants/float16/ln-two-pi/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var FLOAT16_LN_TWO_PI = require( '@stdlib/constants/float16/ln-two-pi' );
3535
[Natural logarithm][@stdlib/math/base/special/lnf] of ``.
3636

3737
```javascript
38-
var bool = ( FLOAT16_LN_TWO_PI === 1.837890625 );
38+
var bool = ( FLOAT16_LN_TWO_PI === 1.8369140625 );
3939
// returns true
4040
```
4141

@@ -55,7 +55,7 @@ var bool = ( FLOAT16_LN_TWO_PI === 1.837890625 );
5555
var FLOAT16_LN_TWO_PI = require( '@stdlib/constants/float16/ln-two-pi' );
5656

5757
console.log( FLOAT16_LN_TWO_PI );
58-
// => 1.837890625
58+
// => 1.8369140625
5959
```
6060

6161
</section>

lib/node_modules/@stdlib/constants/float16/ln-two-pi/docs/repl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Examples
66
--------
77
> {{alias}}
8-
1.837890625
8+
1.8369140625
99

1010
See Also
1111
--------

lib/node_modules/@stdlib/constants/float16/ln-two-pi/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @example
2525
* var val = FLOAT16_LN_TWO_PI;
26-
* // returns 1.837890625
26+
* // returns 1.8369140625
2727
*/
2828
declare const FLOAT16_LN_TWO_PI: number;
2929

lib/node_modules/@stdlib/constants/float16/ln-two-pi/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
var FLOAT16_LN_TWO_PI = require( './../lib' );
2222

2323
console.log( FLOAT16_LN_TWO_PI );
24-
// => 1.837890625
24+
// => 1.8369140625

lib/node_modules/@stdlib/constants/float16/ln-two-pi/lib/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
*
2727
* @example
2828
* var FLOAT16_LN_TWO_PI = require( '@stdlib/constants/float16/ln-two-pi' );
29-
* // returns 1.837890625
29+
* // returns 1.8369140625
3030
*/
3131

3232
// MODULES //
3333

34-
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float16' );
34+
// (removed conversion import; not needed for hardcoded float16 value)
3535

3636

3737
// MAIN //
@@ -45,9 +45,9 @@ var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float16' );
4545
*
4646
* @constant
4747
* @type {number}
48-
* @default 1.837890625
48+
* @default 1.8369140625
4949
*/
50-
var FLOAT16_LN_TWO_PI = float64ToFloat32( 1.8378770664093456 );
50+
var FLOAT16_LN_TWO_PI = 1.8369140625;
5151

5252

5353
// EXPORTS //

lib/node_modules/@stdlib/constants/float16/ln-two-pi/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ tape( 'main export is a number', function test( t ) {
3636
t.end();
3737
});
3838

39-
tape( 'export is a half-precision floating-point number equal to `1.837890625`', function test( t ) {
40-
t.strictEqual( FLOAT16_LN_TWO_PI, 1.837890625, 'returns expected value' );
39+
tape( 'export is a half-precision floating-point number equal to `1.8369140625`', function test( t ) {
40+
t.strictEqual( FLOAT16_LN_TWO_PI, 1.8369140625, 'returns expected value' );
4141
t.end();
4242
});
4343

0 commit comments

Comments
 (0)