Update page 'Day 1 Homework - Karen'

2023-03-30 20:09:18 +02:00
parent b66d3c13d8
commit 0ee0850606
+2
@@ -9,6 +9,8 @@ The IEEE754 standard defines several different floating-point formats and the mo
**3. Does your computer support all those formats? Can you think of an easy way to check with only one line of Python?** **3. Does your computer support all those formats? Can you think of an easy way to check with only one line of Python?**
I can easily use `numpy.finfo` to return information about the floating-point data type used by my system, and it shows that my computer uses 64 bits by default and can also use float16 and float32. However, a quadruple-precision format is not supported by my system as it returns a warning. I can easily use `numpy.finfo` to return information about the floating-point data type used by my system, and it shows that my computer uses 64 bits by default and can also use float16 and float32. However, a quadruple-precision format is not supported by my system as it returns a warning.
![Floating-point formats](https://github.com/Karenzky/PythonBootcamp/blob/main/float%20formats.png)
**4. Why doesn't this code give the same answers to the two multiplications?** **4. Why doesn't this code give the same answers to the two multiplications?**