File tree Expand file tree Collapse file tree 3 files changed +26
-16
lines changed
Expand file tree Collapse file tree 3 files changed +26
-16
lines changed Original file line number Diff line number Diff line change 11name : CI
22
3- on : push
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ branches : [master]
48
59jobs :
610 build :
Original file line number Diff line number Diff line change 11# purescript-numbers
2- [ ![ Latest release] ( http://img.shields.io/github/release/sharkdp/purescript-numbers.svg )] ( https://github.com/sharkdp/purescript-numbers/releases )
3- [ ![ Build status] ( https://github.com/purescript/purescript-numbers/workflows/CI/badge.svg?branch=master )] ( https://github.com/purescript/purescript-numbers/actions?query=workflow%3ACI+branch%3Amaster )
2+
3+ [ ![ Latest release] ( http://img.shields.io/github/release/purescript/purescript-prelude.svg )] ( https://github.com/purescript/purescript-prelude/releases )
4+ [ ![ Build status] ( https://github.com/purescript/purescript-prelude/workflows/CI/badge.svg?branch=master )] ( https://github.com/purescript/purescript-prelude/actions?query=workflow%3ACI+branch%3Amaster )
5+ [ ![ Pursuit] ( https://pursuit.purescript.org/packages/purescript-prelude/badge )] ( https://pursuit.purescript.org/packages/purescript-prelude )
46
57Utility functions for working with PureScripts builtin ` Number ` type.
68
7- * [ ** Module documentation on Pursuit** ] ( http://pursuit.purescript.org/packages/purescript-numbers ) .
9+ ## Installation
10+
11+ ```
12+ spago install numbers
13+ ```
814
915## Examples
1016
1117Parsing:
12- ``` purs
18+
19+ ``` purs
1320> fromString "12.34"
1421(Just 12.34)
1522
@@ -18,7 +25,8 @@ Parsing:
1825```
1926
2027Formatting (` Data.Number.Format ` ):
21- ``` purs
28+
29+ ``` purs
2230> let x = 1234.56789
2331
2432> toStringWith (precision 6) x
@@ -32,27 +40,25 @@ Formatting (`Data.Number.Format`):
3240```
3341
3442Approximate comparisons (` Data.Number.Approximate ` ):
35- ``` purs
43+
44+ ``` purs
3645> 0.1 + 0.2 == 0.3
3746false
3847
3948> 0.1 + 0.2 ≅ 0.3
4049true
4150```
4251
43- * NaN* and * infinity* :
44- ``` purs
52+ _ NaN_ and _ infinity_ :
53+
54+ ``` purs
4555> isNaN (Math.asin 2.0)
4656true
4757
4858> isFinite (1.0 / 0.0)
4959false
5060```
5161
52- ## Installation
53-
54- ```
55- spago install numbers
56- ```
57-
62+ ## Documentation
5863
64+ Module documentation is [ published on Pursuit] ( http://pursuit.purescript.org/packages/purescript-numbers ) .
Original file line number Diff line number Diff line change 88 "devDependencies" : {
99 "pulp" : " ^15.0.0" ,
1010 "purescript-psa" : " ^0.8.0" ,
11- "rimraf" : " ^2.6.1 "
11+ "rimraf" : " ^3.0.2 "
1212 }
1313}
You can’t perform that action at this time.
0 commit comments