Test Failedexpected 513.01 (#BigDecimal:55970764d9c8,'0.51301E3',18(18)) to be a kind of Float
--> how to get float successfully in postgres
1 test case fail due to float
cast( (SUM(j.salary) / COUNT(p)) as float(2) ) as average_salary
numeric is failing
This comment is hidden because it contains spoiler information about the solution
Test Failedexpected 513.01 (#BigDecimal:55970764d9c8,'0.51301E3',18(18)) to be a kind of Float
--> how to get float successfully in postgres
1 test case fail due to float
cast( (SUM(j.salary) / COUNT(p)) as float(2) ) as average_salary
numeric is failing
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
above worked . used integer instead of numeric
This comment is hidden because it contains spoiler information about the solution
@stɛffan153 ah, I was thinking of CyberChef, so that made little sense :D
C++ has that test, and the expecte is 2.
@B1ts CodeChef is a thing ;) https://www.codechef.com/
Maybe this guy is coming from there and accidentally said the wrong thing.
We just told you how...
???
i am referring to test cases of codewars that is provided. how to view the inputs from codechef ?
Where do you see that test? It should be 2.
Try printing it out in the console
You can use
print(text)
to see inputs. Also, use spoiler flag plz... (next time you post code)how to view input data of test cases ?
Loading more items...