Skip to content

Commit c85e5d6

Browse files
committed
Auto-generated commit
1 parent 24e6e55 commit c85e5d6

File tree

5 files changed

+113
-49
lines changed

5 files changed

+113
-49
lines changed

.gitignore

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,12 @@ jsconfig.json
188188
# Other editor files #
189189
######################
190190
.idea/
191-
192-
# Cursor #
193-
##########
191+
.cursor
194192
.cursorignore
193+
.windsurfrules
194+
.clinerules
195+
196+
# AI coding agents #
197+
####################
198+
CLAUDE.md
199+
GEMINI.md

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-09-01)
7+
## Unreleased (2025-11-07)
88

99
<section class="features">
1010

1111
### Features
1212

13+
- [`f114dad`](https://github.com/stdlib-js/stdlib/commit/f114dad17c4ab240701b7c67aeb313aac7831eb7) - update `number/float64/base/assert` TypeScript declarations
1314
- [`0cf2dd6`](https://github.com/stdlib-js/stdlib/commit/0cf2dd65ae1a209d306184a82c4226742bfa6103) - add `isAlmostEqual` exports to namespaces
1415
- [`d10932c`](https://github.com/stdlib-js/stdlib/commit/d10932c2a1f70d4b26332abd0bc80ea09848618a) - add `number/float64/base/assert/is-almost-equal`
1516
- [`e38f5ec`](https://github.com/stdlib-js/stdlib/commit/e38f5ecf382db6ed19fc3b66d75801fbf9909843) - add `number/float64/base/assert/is-almost-equal-value` [(#7473)](https://github.com/stdlib-js/stdlib/pull/7473)
@@ -24,6 +25,8 @@
2425

2526
<details>
2627

28+
- [`5f5bb2d`](https://github.com/stdlib-js/stdlib/commit/5f5bb2d4277a24000b57fb07bc28d821500cd7e8) - **docs:** update namespace table of contents [(#8425)](https://github.com/stdlib-js/stdlib/pull/8425) _(by stdlib-bot, Athan Reines)_
29+
- [`f114dad`](https://github.com/stdlib-js/stdlib/commit/f114dad17c4ab240701b7c67aeb313aac7831eb7) - **feat:** update `number/float64/base/assert` TypeScript declarations _(by Philipp Burckhardt)_
2730
- [`0cf2dd6`](https://github.com/stdlib-js/stdlib/commit/0cf2dd65ae1a209d306184a82c4226742bfa6103) - **feat:** add `isAlmostEqual` exports to namespaces _(by Philipp Burckhardt)_
2831
- [`7483bef`](https://github.com/stdlib-js/stdlib/commit/7483bef13b1d3241347266d25a02957269419825) - **test:** use .strictEqual() instead of .equal() _(by Philipp Burckhardt)_
2932
- [`6eee151`](https://github.com/stdlib-js/stdlib/commit/6eee15199727d04e3757e66f38384e97b8a333da) - **style:** fix indentation in JSON files _(by Philipp Burckhardt)_

CONTRIBUTORS

Lines changed: 58 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Contributors listed in alphabetical order.
44

55
Aadish Jain <[email protected]>
6-
Aarya Balwadkar <[email protected].com>
6+
Aarya Balwadkar <aaryabalwadkar2005@gmail.com>
77
Aayush Khanna <[email protected]>
88
Abdelrahman Samir <[email protected]>
99
Abdul Kaium <[email protected]>
@@ -20,23 +20,23 @@ Ahmed Khaled <[email protected]>
2020
Aksshay Balasubramanian <[email protected]>
2121
Aleksandr <[email protected]>
2222
Ali Salesi <[email protected]>
23-
AlyAbdelmoneim <[email protected]>
24-
Aman Bhansali <[email protected]>
25-
AmanBhadkariya <[email protected].com>
26-
Amisha Chhajed <[email protected].com>
23+
Aly Abdelmoneim <[email protected]>
24+
Aman Bhadkariya <[email protected]>
25+
Aman Bhansali <amanbhansali65@gmail.com>
26+
Amisha Chhajed <amishhhaaaa@gmail.com>
2727
Amit Jimiwal <[email protected]>
28-
Anmol Sah <[email protected].com>
28+
Anmol Sah <annifind010@gmail.com>
2929
Annamalai Prabu <[email protected]>
30-
Anshu Kumar <[email protected]>
3130
Anshu Kumar <[email protected]>
31+
Anshuman Singh <[email protected]>
3232
Anudeep Sanapala <[email protected]>
3333
Arihant Pal <[email protected]>
3434
Aryan Bhirud <[email protected]>
35-
35+
3636
Athan Reines <[email protected]>
37-
Atharva Patil <[email protected].com>
38-
Ayaka <[email protected].com>
39-
Bhavishy Agrawal <[email protected]>
37+
Atharva Patil <anpatil.1223@gmail.com>
38+
Bhavishy Agrawal <bhavishyrocker2801@gmail.com>
39+
Bhupesh Kumar <[email protected]>
4040
Brendan Graetz <[email protected]>
4141
Bruno Fenzl <[email protected]>
4242
Bryan Elee <[email protected]>
@@ -47,68 +47,77 @@ Daniel Hernandez Gomez <[email protected]>
4747
Daniel Killenberger <[email protected]>
4848
Daniel Yu <[email protected]>
4949
Debashis Maharana <[email protected]>
50-
Deep Trivedi <[email protected].com>
50+
Deep Trivedi <deepbtrivedi04@gmail.com>
5151
Deepak Singh <[email protected]>
5252
Deepak Singh <[email protected]>
53-
Desh Deepak Kant <[email protected].com>
53+
Desh Deepak Kant <deshdeepakkant@gmail.com>
5454
55-
Dhanyabad behera <[email protected]>
55+
Devshree Bhati <[email protected]>
56+
Dhanyabad Behera <[email protected]>
5657
Dhruv Arvind Singh <[email protected]>
57-
Dhruvil Mehta <[email protected]>
58-
Dipjyoti Das <[email protected]>
59-
Divyansh Seth <[email protected]>
58+
Dhruvil Mehta <[email protected]>
59+
Dipjyoti Das <[email protected]>
60+
61+
Divyansh Seth <[email protected]>
6062
Dominic Lim <[email protected]>
6163
Dominik Moritz <[email protected]>
6264
Dorrin Sotoudeh <[email protected]>
63-
EuniceSim142 <[email protected]>
65+
Dudhat Hemil Pravinkumar <[email protected]>
66+
Ekampreet Singh Bains <[email protected]>
67+
Eunice Sim <[email protected]>
68+
6469
Frank Kovacs <[email protected]>
65-
GK Bishnoi <[email protected]>
66-
GURU PRASAD SHARMA <[email protected]>
67-
70+
Gaurav Jadhav <[email protected]>
71+
Gaurav Kaushik <[email protected]>
6872
Gautam Kaushik <[email protected]>
6973
Gautam sharma <[email protected]>
70-
74+
Geo Daoyu <[email protected]>
7175
Girish Garg <[email protected]>
76+
Gitty Harsha <[email protected]>
7277
Golden Kumar <[email protected]>
78+
Gopi Kishan <[email protected]>
7379
Gunj Joshi <[email protected]>
80+
Guru Prasad Sharma <[email protected]>
7481
Gururaj Gurram <[email protected]>
7582
Harishchandra Reddy <[email protected]>
7683
Haroon Rasheed <[email protected]>
77-
78-
84+
Harsh Yadav <[email protected]>
7985
Harshita Kalani <[email protected]>
8086
Hemang Choudhary <[email protected]>
8187
Hemant M Mehta <[email protected]>
8288
Hridyanshu <[email protected]>
89+
Iryna Andrushko <[email protected]>
8390
Jaimin Godhani <[email protected]>
84-
Jaison D Souza <[email protected].com>
91+
Jaison Dsouza <jaisondz9360@gmail.com>
8592
Jalaj Kumar <[email protected]>
8693
James Gelok <[email protected]>
8794
8895
Jaysukh Makvana <[email protected]>
96+
8997
Jenish Thapa <[email protected]>
9098
Jithin KS <[email protected]>
9199
Joel Mathew Koshy <[email protected]>
92100
Joey Reed <[email protected]>
93101
Jordan Gallivan <[email protected]>
94102
Joris Labie <[email protected]>
103+
95104
Justin Dennison <[email protected]>
96105
Justyn Shelby <[email protected]>
97106
Karan Anand <[email protected]>
98107
Karan Vasudevamurthy <[email protected]>
99108
Karan Yadav <[email protected]>
100109
Karthik Prakash <[email protected]>
101-
Kaushikgtm <[email protected]>
102110
Kavyansh-Bagdi <[email protected]>
103111
Kohantika Nath <[email protected]>
104112
Krishnam Agarwal <[email protected]>
105113
Krishnendu Das <[email protected]>
106114
Kshitij-Dale <[email protected]>
107115
Lalit Narayan Yadav <[email protected]>
116+
lohithganni <[email protected]>
108117
Lokesh Ranjan <[email protected]>
109118
Lovelin Dhoni J B <[email protected]>
110-
111119
Mahfuza Humayra Mohona <[email protected]>
120+
112121
Manik Sharma <[email protected]>
113122
Manvith M <[email protected]>
114123
Marcus Fantham <[email protected]>
@@ -117,14 +126,17 @@ Mihir Pandit <[email protected]>
117126
Milan Raj <[email protected]>
118127
Mohammad Bin Aftab <[email protected]>
119128
Mohammad Kaif <[email protected]>
129+
120130
Momtchil Momtchev <[email protected]>
121131
Muhammad Haris <[email protected]>
122132
Muhammad Taaha Tariq <[email protected]>
123133
Muhmmad Saad <[email protected]>
124-
NEEKUorAAYUSH <[email protected]>
125134
Nakul Krishnakumar <[email protected]>
126135
Naresh Jagadeesan <[email protected]>
127136
Naveen Kumar <[email protected]>
137+
Navyansh Kesarwani <[email protected]>
138+
navyansh007 <[email protected]>
139+
NEEKUorAAYUSH <[email protected]>
128140
Neeraj Pathak <[email protected]>
129141
NirvedMishra <[email protected]>
130142
Nishant Shinde <[email protected]>
@@ -133,14 +145,18 @@ Nishchay Rajput <[email protected]>
133145
Nithin Katta <[email protected]>
134146
Nourhan Hasan <[email protected]>
135147
Ognjen Jevremović <[email protected]>
148+
olenkabilonizhka <[email protected]>
136149
Oneday12323 <[email protected]>
137150
Ori Miles <[email protected]>
151+
Payal Goswami <[email protected]>
138152
Philipp Burckhardt <[email protected]>
139153
Pierre Forstmann <[email protected]>
154+
Piyush Goel <[email protected]>
140155
Pradyumn Prasad <[email protected]>
141156
Prajjwal Bajpai <[email protected]>
142157
Prajwal Kulkarni <[email protected]>
143158
Pranav Goswami <[email protected]>
159+
pranav-1720 <[email protected]>
144160
Pranjal Jha <[email protected]>
145161
Prashant Kumar Yadav <[email protected]>
146162
PrathamBhamare <[email protected]>
@@ -152,37 +168,44 @@ Priyanshu Agarwal <[email protected]>
152168
Pulkit Gupta <[email protected]>
153169
Pushpendra Chandravanshi <[email protected]>
154170
Rahul Kumar <[email protected]>
171+
rahulrangers <[email protected]>
172+
155173
Raunak Kumar Gupta <[email protected]>
174+
156175
Rejoan Sardar <[email protected]>
157176
Ricky Reusser <[email protected]>
158177
Ridam Garg <[email protected]>
159178
160179
Rishav Tarway <[email protected]>
161180
Robert Gislason <[email protected]>
162181
Roman Stetsyk <[email protected]>
182+
RudrakshRaina07 <[email protected]>
163183
164184
Rutam Kathale <[email protected]>
165185
Ruthwik Chikoti <[email protected]>
166186
Ryan Seal <[email protected]>
167187
Rylan Yang <[email protected]>
168-
SAHIL KUMAR <[email protected]>
169-
SAUJANYA MAGARDE <[email protected]>
170-
SHIVAM YADAV <[email protected]>
171188
Sachin Raj <[email protected]>
172189
Sahil Goyal <[email protected]>
190+
SAHIL KUMAR <[email protected]>
173191
Sai Avinash <[email protected]>
174192
Sai Srikar Dumpeti <[email protected]>
175193
Sanchay Ketan Sinha <[email protected]>
176194
Sarthak Paandey <[email protected]>
177195
Satyajeet Chavan <[email protected]>
196+
SAUJANYA MAGARDE <[email protected]>
178197
Saurabh Singh <[email protected]>
198+
Seth-Banker <[email protected]>
179199
Seyyed Parsa Neshaei <[email protected]>
180200
Shabareesh Shetty <[email protected]>
181201
Shashank Shekhar Singh <[email protected]>
202+
Shaswata Panda <[email protected]>
182203
Shivam Ahir <[email protected]>
204+
SHIVAM YADAV <[email protected]>
183205
184206
Shraddheya Shendre <[email protected]>
185207
Shubh Mehta <[email protected]>
208+
186209
Shubham Mishra <[email protected]>
187210
Siddhesh waje <[email protected]>
188211
Sivam Das <[email protected]>
@@ -199,6 +222,8 @@ Tirtadwipa Manunggal <[email protected]>
199222
Tudor Pagu <[email protected]>
200223
Tufailahmed Bargir <[email protected]>
201224
Tushar Bhardwaj <[email protected]>
225+
Tushar Bharti <[email protected]>
226+
Tyson Cung <[email protected]>
202227
Uday Kakade <[email protected]>
203228
Ujjwal Kirti <[email protected]>
204229
Utkarsh <http://[email protected]>
@@ -214,19 +239,7 @@ Wendy Yuchen Sun <[email protected]>
214239
Xiaochuan Ye <[email protected]>
215240
Yaswanth Kosuru <[email protected]>
216241
Yernar Yergaziyev <[email protected]>
242+
youzi-forge <[email protected]>
217243
Yugal Kaushik <[email protected]>
218244
Yuvi Mittal <[email protected]>
219-
deepak427 <[email protected]>
220-
devshree-bhati <[email protected]>
221-
222-
ekambains <[email protected]>
223-
fadiothman22 <[email protected]>
224-
iraandrushko <[email protected]>
225-
226-
lohithganni <[email protected]>
227-
olenkabilonizhka <[email protected]>
228-
pranav-1720 <[email protected]>
229-
rahulrangers <[email protected]>
230-
231-
232-
245+
Zuhair Ahmad <[email protected]>

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ The namespace contains the following functions:
7878

7979
<div class="namespace-toc">
8080

81+
- <span class="signature">[`isAlmostEqual( a, b, maxULP )`][@stdlib/number/float64/base/assert/is-almost-equal]</span><span class="delimiter">: </span><span class="description">test if two double-precision floating-point numbers are approximately equal within a specified number of ULPs (units in the last place).</span>
8182
- <span class="signature">[`isSameValueZero( a, b )`][@stdlib/number/float64/base/assert/is-same-value-zero]</span><span class="delimiter">: </span><span class="description">test if two double-precision floating-point numbers are the same value.</span>
8283
- <span class="signature">[`isSameValue( a, b )`][@stdlib/number/float64/base/assert/is-same-value]</span><span class="delimiter">: </span><span class="description">test if two double-precision floating-point numbers are the same value.</span>
8384

@@ -198,6 +199,8 @@ Copyright &copy; 2016-2025. The Stdlib [Authors][stdlib-authors].
198199

199200
<!-- <toc-links> -->
200201

202+
[@stdlib/number/float64/base/assert/is-almost-equal]: https://github.com/stdlib-js/number-float64-base-assert-is-almost-equal
203+
201204
[@stdlib/number/float64/base/assert/is-same-value-zero]: https://github.com/stdlib-js/number-float64-base-assert-is-same-value-zero
202205

203206
[@stdlib/number/float64/base/assert/is-same-value]: https://github.com/stdlib-js/number-float64-base-assert-is-same-value

docs/types/index.d.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,53 @@
2020

2121
/* eslint-disable max-lines */
2222

23+
import isAlmostEqual = require( '@stdlib/number-float64-base-assert-is-almost-equal' );
2324
import isSameValue = require( '@stdlib/number-float64-base-assert-is-same-value' );
2425
import isSameValueZero = require( '@stdlib/number-float64-base-assert-is-same-value-zero' );
2526

2627
/**
2728
* Interface describing the `assert` namespace.
2829
*/
2930
interface Namespace {
31+
/**
32+
* Tests if two double-precision floating-point numbers are approximately equal within a specified number of ULPs (units in the last place).
33+
*
34+
* ## Notes
35+
*
36+
* - The function returns `false` if either input value is `NaN`.
37+
* - The function does not distinguish between `-0` and `+0`, treating them as equal.
38+
*
39+
* @param a - first input value
40+
* @param b - second input value
41+
* @param maxULP - maximum allowed ULP difference
42+
* @returns boolean indicating whether two double-precision floating-point numbers are approximately equal within a specified number of ULPs
43+
*
44+
* @example
45+
* var EPS = require( '@stdlib/constants-float64-eps' );
46+
*
47+
* var bool = ns.isAlmostEqual( 1.0, 1.0+EPS, 1 );
48+
* // returns true
49+
*
50+
* bool = ns.isAlmostEqual( 1.0+EPS, 1.0, 1 );
51+
* // returns true
52+
*
53+
* bool = ns.isAlmostEqual( 1.0, 1.0+EPS+EPS, 1 );
54+
* // returns false
55+
*
56+
* bool = ns.isAlmostEqual( 1.0, 1.0+EPS, 0 );
57+
* // returns false
58+
*
59+
* bool = ns.isAlmostEqual( 0.0, -0.0, 0 );
60+
* // returns true
61+
*
62+
* bool = ns.isAlmostEqual( 1.0, NaN, 1 );
63+
* // returns false
64+
*
65+
* bool = ns.isAlmostEqual( NaN, NaN, 1 );
66+
* // returns false
67+
*/
68+
isAlmostEqual: typeof isAlmostEqual;
69+
3070
/**
3171
* Tests if two double-precision floating-point numbers are the same value.
3272
*

0 commit comments

Comments
 (0)