0

C++ program to pass 4 arguments of float type to a function,compare the numbers and find out the larger value without logical op

Without using any logical operator

5th Sep 2022, 5:34 AM
Yousafse
Yousafse - avatar
3 Answers
+ 2
Hi! we cannot help you in any way, since you have not attached the problem solution code and we do not see what the problem is
5th Sep 2022, 6:37 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
A little note on floating point value comparison. Due to precision (accuracy) issue, comparison of floating point values should not be considered fully reliable. With `float` (single precision floating point type) in mind, the precision accuracy issue *may* even become worse. * Looking forward ... https://rules.sonarsource.com/c/RSPEC-1244
5th Sep 2022, 7:04 AM
Ipang
+ 1
Yousafse A your attempt is needed...
5th Sep 2022, 6:45 AM
KrOW
KrOW - avatar