Skip to content

Commit e09f384

Browse files
authored
docs: update example and remove note
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 023ae25 commit e09f384

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

  • lib/node_modules/@stdlib/constants/float16/sign-mask

lib/node_modules/@stdlib/constants/float16/sign-mask/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ var bool = ( FLOAT16_SIGN_MASK === 0x8000 );
5050

5151
<section class="notes">
5252

53-
## Notes
54-
55-
- The higher order word of a [half-precision floating-point number][ieee754] is a 16-bit integer containing the more significant bits which include the exponent and sign.
56-
5753
</section>
5854

5955
<!-- /.notes -->
@@ -68,7 +64,6 @@ var bool = ( FLOAT16_SIGN_MASK === 0x8000 );
6864

6965
```javascript
7066
var toWord = require( '@stdlib/number/float16/base/to-word' );
71-
var fromWord = require( '@stdlib/number/float16/base/from-word' );
7267
var FLOAT16_SIGN_MASK = require( '@stdlib/constants/float16/sign-mask' );
7368

7469
var x = -11.5;
@@ -82,10 +77,6 @@ var out = (w & FLOAT16_SIGN_MASK)>>>0; // 1 00000 0000000000
8277
// Turn off the sign bit and leave other bits unchanged:
8378
out = w & (~FLOAT16_SIGN_MASK); // 0 10010 0111000000
8479
// returns 18880
85-
86-
// Generate a new value:
87-
out = fromWord( out );
88-
// returns 11.5
8980
```
9081

9182
</section>

0 commit comments

Comments
 (0)