@@ -158,9 +158,9 @@ See [`isFinite`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Referen
158158## Examples
159159
160160```rescript
161- Float.isFinite(1.0) // true
162- Float.isFinite(Float.Constants.nan) // false
163- Float.isFinite(Float.Constants.positiveInfinity) // false
161+ Float.isFinite(1.0) == true
162+ Float.isFinite(Float.Constants.nan) == false
163+ Float.isFinite(Float.Constants.positiveInfinity) == false
164164```
165165*/
166166@val
@@ -175,11 +175,11 @@ See [`parseFloat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refer
175175## Examples
176176
177177```rescript
178- Float.parseFloat("1.0") // 1.0
179- Float.parseFloat(" 3.14 ") // 3.14
180- Float.parseFloat("3.0") // 3.0
181- Float.parseFloat("3.14some non-digit characters") // 3.14
182- Float.parseFloat("error")->Float.isNaN // true
178+ Float.parseFloat("1.0") == 1.0
179+ Float.parseFloat(" 3.14 ") == 3.14
180+ Float.parseFloat("3.0") == 3.0
181+ Float.parseFloat("3.14some non-digit characters") == 3.14
182+ Float.parseFloat("error")->Float.isNaN == true
183183```
184184*/
185185@val
@@ -196,15 +196,15 @@ See [`parseInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Referen
196196## Examples
197197
198198```rescript
199- Float.parseInt("1.0") // 1.0
200- Float.parseInt(" 3.14 ") // 3.0
201- Float.parseInt(3) // 3.0
202- Float.parseInt("3.14some non-digit characters") // 3.0
203- Float.parseInt("error")->Float.isNaN // true
204- Float.parseInt("10.0", ~radix=2) // 2.0
205- Float.parseInt("15 * 3", ~radix=10) // 15.0
206- Float.parseInt("12", ~radix=13) // 15.0
207- Float.parseInt("17", ~radix=40)->Float.isNaN // true
199+ Float.parseInt("1.0") == 1.0
200+ Float.parseInt(" 3.14 ") == 3.0
201+ Float.parseInt(3) == 3.0
202+ Float.parseInt("3.14some non-digit characters") == 3.0
203+ Float.parseInt("error")->Float.isNaN == true
204+ Float.parseInt("10.0", ~radix=2) == 2.0
205+ Float.parseInt("15 * 3", ~radix=10) == 15.0
206+ Float.parseInt("12", ~radix=13) == 15.0
207+ Float.parseInt("17", ~radix=40)->Float.isNaN == true
208208```
209209*/
210210@val
@@ -221,10 +221,10 @@ See [`parseInt`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Referen
221221## Examples
222222
223223```rescript
224- Float.parseIntWithRadix("10.0", ~radix=2) // 2.0
225- Float.parseIntWithRadix("15 * 3", ~radix=10) // 15.0
226- Float.parseIntWithRadix("12", ~radix=13) // 15.0
227- Float.parseIntWithRadix("17", ~radix=40)->Float.isNaN // true
224+ Float.parseIntWithRadix("10.0", ~radix=2) == 2.0
225+ Float.parseIntWithRadix("15 * 3", ~radix=10) == 15.0
226+ Float.parseIntWithRadix("12", ~radix=13) == 15.0
227+ Float.parseIntWithRadix("17", ~radix=40)->Float.isNaN == true
228228```
229229*/
230230@deprecated ("Use `parseInt` instead" ) @val
@@ -239,10 +239,10 @@ See [`Number.toExponential`](https://developer.mozilla.org/en-US/docs/Web/JavaSc
239239## Examples
240240
241241```rescript
242- Float.toExponential(1000.0) // "1e+3"
243- Float.toExponential(-1000.0) // "-1e+3"
244- Float.toExponential(77.0, ~digits=2) // "7.70e+1"
245- Float.toExponential(5678.0, ~digits=2) // "5.68e+3"
242+ Float.toExponential(1000.0) == "1e+3"
243+ Float.toExponential(-1000.0) == "-1e+3"
244+ Float.toExponential(77.0, ~digits=2) == "7.70e+1"
245+ Float.toExponential(5678.0, ~digits=2) == "5.68e+3"
246246```
247247
248248## Exceptions
@@ -261,8 +261,8 @@ See [`Number.toExponential`](https://developer.mozilla.org/en-US/docs/Web/JavaSc
261261## Examples
262262
263263```rescript
264- Float.toExponentialWithPrecision(77.0, ~digits=2) // "7.70e+1"
265- Float.toExponentialWithPrecision(5678.0, ~digits=2) // "5.68e+3"
264+ Float.toExponentialWithPrecision(77.0, ~digits=2) == "7.70e+1"
265+ Float.toExponentialWithPrecision(5678.0, ~digits=2) == "5.68e+3"
266266```
267267
268268## Exceptions
@@ -281,10 +281,10 @@ See [`Number.toFixed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/R
281281## Examples
282282
283283```rescript
284- Float.toFixed(123456.0) // "123456.00 "
285- Float.toFixed(10.0) // "10.00 "
286- Float.toFixed(300.0, ~digits=4) // "300.0000"
287- Float.toFixed(300.0, ~digits=1) // "300.0"
284+ Float.toFixed(123456.0) == "123456"
285+ Float.toFixed(10.0) == "10"
286+ Float.toFixed(300.0, ~digits=4) == "300.0000"
287+ Float.toFixed(300.0, ~digits=1) == "300.0"
288288```
289289
290290## Exceptions
@@ -303,8 +303,8 @@ See [`Number.toFixed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/R
303303## Examples
304304
305305```rescript
306- Float.toFixedWithPrecision(300.0, ~digits=4) // "300.0000"
307- Float.toFixedWithPrecision(300.0, ~digits=1) // "300.0"
306+ Float.toFixedWithPrecision(300.0, ~digits=4) == "300.0000"
307+ Float.toFixedWithPrecision(300.0, ~digits=1) == "300.0"
308308```
309309
310310## Exceptions
@@ -322,10 +322,10 @@ See [`Number.toPrecision`](https://developer.mozilla.org/en-US/docs/Web/JavaScri
322322## Examples
323323
324324```rescript
325- Float.toPrecision(100.0) // "100"
326- Float.toPrecision(1.0) // "1"
327- Float.toPrecision(100.0, ~digits=2) // "1.0e+2"
328- Float.toPrecision(1.0, ~digits=1) // "1"
325+ Float.toPrecision(100.0) == "100"
326+ Float.toPrecision(1.0) == "1"
327+ Float.toPrecision(100.0, ~digits=2) == "1.0e+2"
328+ Float.toPrecision(1.0, ~digits=1) == "1"
329329```
330330
331331## Exceptions
@@ -345,8 +345,8 @@ See [`Number.toPrecision`](https://developer.mozilla.org/en-US/docs/Web/JavaScri
345345## Examples
346346
347347```rescript
348- Float.toPrecisionWithPrecision(100.0, ~digits=2) // "1.0e+2"
349- Float.toPrecisionWithPrecision(1.0, ~digits=1) // "1"
348+ Float.toPrecisionWithPrecision(100.0, ~digits=2) == "1.0e+2"
349+ Float.toPrecisionWithPrecision(1.0, ~digits=1) == "1"
350350```
351351
352352## Exceptions
@@ -366,8 +366,8 @@ See [`Number.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/
366366## Examples
367367
368368```rescript
369- Float.toString(1000.0) // "1000"
370- Float.toString(-1000.0) // "-1000"
369+ Float.toString(1000.0) == "1000"
370+ Float.toString(-1000.0) == "-1000"
371371```
372372*/
373373@send
@@ -381,9 +381,9 @@ See [`Number.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/
381381## Examples
382382
383383```rescript
384- Float.toStringWithRadix(6.0, ~radix=2) // "110"
385- Float.toStringWithRadix(3735928559.0, ~radix=16) // "deadbeef"
386- Float.toStringWithRadix(123456.0, ~radix=36) // "2n9c"
384+ Float.toStringWithRadix(6.0, ~radix=2) == "110"
385+ Float.toStringWithRadix(3735928559.0, ~radix=16) == "deadbeef"
386+ Float.toStringWithRadix(123456.0, ~radix=36) == "2n9c"
387387```
388388
389389## Exceptions
0 commit comments