Skip to content

Commit 16633a0

Browse files
committed
answer questions
1 parent f0b4390 commit 16633a0

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

_toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ parts:
3636
- file: notes/2023-11-07
3737
- file: notes/2023-11-09
3838
- file: notes/2023-11-14
39+
- file: notes/2023-11-16
40+
- file: notes/2023-11-21
3941
- caption: Activities
4042
chapters:
4143
- file: activities/kwl

notes/2023-11-21.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,4 +503,51 @@ this confirms that the approximation we found is the same as the float represent
503503

504504
## Experience Report Evidence
505505

506-
## Questions After Today's Class
506+
## Questions After Today's Class
507+
508+
509+
### Why can't systems just interpret decimal numbers like humans can?
510+
511+
512+
Because it has to be represented mechanically or electrically for it to be a machine.
513+
514+
515+
### My question is how bad can the approximations get when calculating floats? How much precision gets lost when dealing with fractional numbers?
516+
517+
The quality of the approximation varies depending on the particular number.
518+
519+
520+
At the bottom of
521+
[float exposed](https://float.exposed/0x3ff0000000000000) you can see how close the next value is.
522+
523+
For 1 (the link above) the next number is a little more than 2.22e-16 away.
524+
525+
For [1532.625](https://float.exposed/0x44bf9400) the next value is 1.22e-4 away.
526+
527+
For [4503599627370497.0](https://float.exposed/0x4330000000000001) to [9007199254740991.0](https://float.exposed/0x433fffffffffffff)the next value is 1.0 away, that is we can only represent integers between those two values, nothing in between.
528+
529+
530+
### Did the people that came from an academia background typically design and implement these low-level systems or people in industry?
531+
532+
A lot of this work was deep collaborations between academia and industry. Some of it occured in universities, some of it was at places like Bell Laboratory. That was a research instittue inside of the for profit Bell Telephone Company.
533+
534+
535+
### How can I practice what we learned today for better understanding?
536+
537+
This is a hard topic and it will come back up in CSC411.
538+
539+
Also, I recommend reading these notes carefully, and trying the float.exposed site.
540+
541+
### Does this process of going through all the bits increase in time with more bytes? Or is there a set number of bits?
542+
543+
This standard is a fixed size of 64 bits, but ther are others with different numbers of bits.
544+
545+
546+
### How different was the initial standard from the one that exists today?
547+
548+
The initial standard defined fewer basic formats, more were introduced in 2008. Official IEEE standards are not free so they're slightly harder to read easily.
549+
550+
### How are we able to assign 0.1 to a variable despite that?
551+
552+
553+
We do not actually get a .1 for doing math. It is close, but not exact. Unless your programming environment has a different base type.

0 commit comments

Comments
 (0)