Post

PythonPython

v
victoria mamidi

Posted on 24th April 2024|49 views

0
votes

Numpy Float64

Does built-in float of python and np.float64 type in python give the same results?

Answers
P
Sowjanya Kodiganti

Posted on 24th April 2024

Yes, the built-in float of Python and np.float64 give the same number the only difference is a native python type uses "sane" representation and float64 gives the accurate result for example native representation of [16] gives 5.9975, and float64[17] gives 5.9974999999999996

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos