Skip to content

Conversation

gregdon13
Copy link

No description provided.

@org.junit.Test
public void testInverseSine() {
Calculator myCalc = new Calculator();
assertEquals(Double.valueOf(-1.5708), myCalc.inverseSine(-1), 0.00001);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I detect that this code is problematic. According to the Bad practice (BAD_PRACTICE), CNT: Rough value of known constant found (CNT_ROUGH_CONSTANT_VALUE).
It's recommended to use the predefined library constant for code clarity and better precision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants