What should be the datatype of discriminant value and if we are using double then how to remove after decimal places to get the correct answer

The datatype for the discriminant value should be double or int because when using double the answer will be with decimal points and when i will type cast this. to int I’m having on test case wrong???

https://online.codingblocks.com/app/player/189797/content/183818/4699/code-challenge

please share your code after saving it on ide.codingblocks.com