Skip to content

Commit 755b960

Browse files
authored
Update README.md
1 parent 2018baa commit 755b960

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
[![Latest release](http://img.shields.io/github/release/sharkdp/purescript-numbers.svg)](https://github.com/sharkdp/purescript-numbers/releases)
33
[![Build status](https://travis-ci.org/sharkdp/purescript-numbers.svg?branch=master)](https://travis-ci.org/sharkdp/purescript-numbers)
44

5-
6-
75
Functions for working with PureScripts builtin `Number` type.
86

7+
* [**Module documentation on Pursuit**](http://pursuit.purescript.org/packages/purescript-numbers).
8+
99
## Examples
1010

1111
Parsing:
@@ -17,15 +17,6 @@ Parsing:
1717
(Just 0.001)
1818
```
1919

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-
2920
*NaN* and *infinity*:
3021
``` purs
3122
> isNaN (Math.asin 2.0)
@@ -35,12 +26,19 @@ true
3526
false
3627
```
3728

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+
3838
## Installation
3939

4040
```
4141
bower install purescript-numbers
4242
```
4343

44-
## Documentation
4544

46-
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-numbers).

0 commit comments

Comments
 (0)