File tree Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Expand file tree Collapse file tree 1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change 2
2
[ ![ Latest release] ( http://img.shields.io/github/release/sharkdp/purescript-numbers.svg )] ( https://github.com/sharkdp/purescript-numbers/releases )
3
3
[ ![ Build status] ( https://travis-ci.org/sharkdp/purescript-numbers.svg?branch=master )] ( https://travis-ci.org/sharkdp/purescript-numbers )
4
4
5
-
6
-
7
5
Functions for working with PureScripts builtin ` Number ` type.
8
6
7
+ * [ ** Module documentation on Pursuit** ] ( http://pursuit.purescript.org/packages/purescript-numbers ) .
8
+
9
9
## Examples
10
10
11
11
Parsing:
@@ -17,15 +17,6 @@ Parsing:
17
17
(Just 0.001)
18
18
```
19
19
20
- Approximate comparisons:
21
- ``` purs
22
- > 0.1 + 0.2 == 0.3
23
- false
24
-
25
- > 0.1 + 0.2 ≅ 0.3
26
- true
27
- ```
28
-
29
20
* NaN* and * infinity* :
30
21
``` purs
31
22
> isNaN (Math.asin 2.0)
35
26
false
36
27
```
37
28
29
+ Approximate comparisons (` Data.Number.Approximate ` ):
30
+ ``` purs
31
+ > 0.1 + 0.2 == 0.3
32
+ false
33
+
34
+ > 0.1 + 0.2 ≅ 0.3
35
+ true
36
+ ```
37
+
38
38
## Installation
39
39
40
40
```
41
41
bower install purescript-numbers
42
42
```
43
43
44
- ## Documentation
45
44
46
- Module documentation is [ published on Pursuit] ( http://pursuit.purescript.org/packages/purescript-numbers ) .
You can’t perform that action at this time.
0 commit comments