floating-accuracy tag

1 questions


1 answers
141 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...


© 2024 OneMinuteCode. All rights reserved.