Skip to content

Commit d51c46b

Browse files
Added missed step clarifying that what is desplayed is the digital version, not the hex output.
1 parent bb15701 commit d51c46b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

11_3_Using_CSV_in_Scripts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Finally, bitwise-or the 23rd bit into the hex value you created:
5151
```
5252
$ relativevalue=$(printf '%x\n' $((0x$hexvalue | 0x400000)))
5353
$ echo $relativevalue
54+
4076a7
55+
$ printf "%d\n" "0x$relativevalue"
5456
4224679
5557
```
5658
If you convert that back you'll see that 4224679 = 10000000111011010100111. The 23rd digit is set to a "1"; meanwhile the first 2 bytes, 0111011010100111, convert to 76A7 in hex or 30375 in decimal. Multiply that by 512 and you get 15.55 million seconds, which indeed is 180 days.

0 commit comments

Comments
 (0)