accuracy tag

2 questions


1 answers
160 views
0
Is it wrong to use the == operator when comparing float in Java?

Here java.According to the sun page, == is an equivalent comparison operator for floating point number in Java.However, write these codes in the editor:if(sectionID == currentSectionID)When I run Stat...


1 answers
91 views
0
Which is more accurate, time.clock() or time.time()?

Which is more accurate to use, time.clock() or time.time() when time is measured in python?For example, #1. time.clock()start = time.clock()#Something codeelapsed = (time.clock() - start)#2. time.time...

2 years ago

© 2024 OneMinuteCode. All rights reserved.