Skip to content

Commit 9dc24d2

Browse files
authored
update readme.md (#9)
- update readme.md - add **isNan()** (experimental). - minor edits.
1 parent b07289a commit 9dc24d2

8 files changed

Lines changed: 315 additions & 198 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9+
## [0.1.8] - 2023-11-02
10+
- update readme.md
11+
- add **isNan()** (experimental).
12+
- minor edits.
13+
14+
915
## [0.1.7] - 2022-11-07
1016
- add changelog.md
1117
- add rp2040 to build-CI
1218
- update readme.md
1319
- update keywords.txt
1420

15-
1621
## [0.1.6] - 2021-12-18
1722
- update library.json
1823
- update license

README.md

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11

2-
32
[![Arduino CI](https://github.com/RobTillaart/float16/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
43
[![Arduino-lint](https://github.com/RobTillaart/float16/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/float16/actions/workflows/arduino-lint.yml)
54
[![JSON check](https://github.com/RobTillaart/float16/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/float16/actions/workflows/jsoncheck.yml)
6-
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/float16/blob/master/LICENSE)
7-
[![GitHub release](https://img.shields.io/github/release/RobTillaart/float16.svg?maxAge=3600)](https://github.com/RobTillaart/Complex/releases)
5+
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/float16.svg)](https://github.com/RobTillaart/float16/issues)
86

7+
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/float16/blob/master/LICENSE)
8+
[![GitHub release](https://img.shields.io/github/release/RobTillaart/float16.svg?maxAge=3600)](https://github.com/RobTillaart/float16/releases)
9+
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/float16.svg)](https://registry.platformio.org/libraries/robtillaart/float16)
910

1011
# float16
1112

@@ -30,7 +31,7 @@ a floating point number. As it uses only 2 bytes where float and double have typ
3031

3132
| attribute | value | notes |
3233
|:----------|:-------------|:--------|
33-
| size | 2 bytes | layout s eeeee mmmmmmmmmm
34+
| size | 2 bytes | layout s eeeee mmmmmmmmmm (1,5,10)
3435
| sign | 1 bit |
3536
| exponent | 5 bit |
3637
| mantissa | 11 bit | ~ 3 digits
@@ -66,9 +67,16 @@ a floating point number. As it uses only 2 bytes where float and double have typ
6667
```
6768

6869

70+
#### Related
71+
72+
- https://wokwi.com/projects/376313228108456961 (demo of its usage)
73+
74+
6975
## Interface
7076

71-
to elaborate
77+
```cpp
78+
#include "float16.h"
79+
```
7280

7381
#### Constructors
7482

@@ -126,20 +134,25 @@ negation operator.
126134
- **bool isInf()** returns true if value is (-)infinite.
127135

128136

137+
#### Experimental 0.1.8
138+
139+
- **bool isNaN()** returns true if value is not a number.
140+
141+
129142
## Notes
130143

131144

132145
## Future
133146

134-
135-
#### 0.1.x
147+
#### Must
136148

137149
- update documentation.
138-
- unit tests of the above.
139-
- isNan().
140150

151+
#### Should
152+
153+
- unit tests of the above.
141154

142-
#### later
155+
#### Could
143156

144157
- update documentation.
145158
- error handling.
@@ -149,3 +162,14 @@ negation operator.
149162
- add storage example - with SD card, FRAM or EEPROM
150163
- add communication example - serial or Ethernet?
151164

165+
#### Wont
166+
167+
168+
## Support
169+
170+
If you appreciate my libraries, you can support the development and maintenance.
171+
Improve the quality of the libraries by providing issues and Pull Requests, or
172+
donate through PayPal or GitHub sponsors.
173+
174+
Thank you,
175+
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
2+
//
3+
// test: UNO
4+
// IDE: 1.8.13
5+
//
6+
7+
FLOAT16_LIB_VERSION: 0.1.7
8+
9+
CONSTRUCTORS
10+
Constructor: 28
11+
a = b: 4
12+
13+
CONVERSION
14+
toDouble(): 428
15+
16+
COMPARE
17+
compare == : 4
18+
compare != : 4
19+
compare < : 4
20+
compare <= : 4
21+
compare >= : 4
22+
compare > : 8
23+
24+
MATH I
25+
math + : 864
26+
math - : 812
27+
math * : 812
28+
math / : 812
29+
30+
MATH II
31+
math += : 872
32+
math -= : 820
33+
math *= : 804
34+
math /= : 804
35+
36+
17.8125
37+
MATH III - negation
38+
negation : 4
39+
40+
-17.8125
41+
42+
done
43+
44+
------------------------------------------
45+
46+
//
47+
// test: RP2040
48+
// IDE: 1.8.13
49+
//
50+
51+
FLOAT16_LIB_VERSION: 0.1.7
52+
53+
CONSTRUCTORS
54+
Constructor: 19
55+
a = b: 2
56+
57+
CONVERSION
58+
toDouble(): 96
59+
60+
COMPARE
61+
compare == : 4
62+
compare != : 3
63+
compare < : 7
64+
compare <= : 6
65+
compare >= : 6
66+
compare > : 6
67+
68+
MATH I
69+
math + : 67
70+
math - : 60
71+
math * : 58
72+
math / : 54
73+
74+
MATH II
75+
math += : 62
76+
math -= : 61
77+
math *= : 61
78+
math /= : 45
79+
80+
767.0000
81+
MATH III - negation
82+
negation : 7
83+
84+
-767.0000
85+
86+
done
87+
88+
-------------------------------------------

0 commit comments

Comments
 (0)