logo-MindMajix
PostPythonPython
v
victoria mamidi

Posted on 18th July 2024|50 views

0
votes

Numpy Float64

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

1 answers
Answers
P
Sowjanya Kodiganti

Posted on 18th July 2024| views

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
Name
Course *
Email *
Phone Number