Update page 'Day 1 Homework - Karen'
@@ -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.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
**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?**
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user