Skip to content

Commit 2c4a581

Browse files
committed
fix: correct precision for float64 inv-two-pi to match IEEE 754
1 parent fdcc9c9 commit 2c4a581

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/constants/float64/inv-two-pi

lib/node_modules/@stdlib/constants/float64/inv-two-pi/include/stdlib/constants/float64/inv_two_pi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
/**
2323
* Macro for the inverse of 2π (1/(2π)).
2424
*/
25-
#define STDLIB_CONSTANT_FLOAT64_INV_TWO_PI 0.15915494309189533577
25+
#define STDLIB_CONSTANT_FLOAT64_INV_TWO_PI 0.15915494309189535
2626

2727
#endif // !STDLIB_CONSTANTS_FLOAT64_INV_TWO_PI_H

lib/node_modules/@stdlib/constants/float64/inv-two-pi/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* @default 0.15915494309189535
4141
* @see [Wikipedia]{@link https://en.wikipedia.org/wiki/Pi}
4242
*/
43-
var FLOAT64_INV_TWO_PI = 0.15915494309189533576888376337251436203445964574045644874766734405889679763422653509534861042142103174415371554; // eslint-disable-line max-len
43+
var FLOAT64_INV_TWO_PI = 0.15915494309189535;
4444

4545

4646
// EXPORTS //

0 commit comments

Comments
 (0)