You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.
This code casts the result of an integral division (e.g., int or long division) operation to double or float. Doing division on integers truncates the result to the integer value closest to zero. The fact that the result was cast to double suggests that this precision should have been retained. What was probably meant was to cast one or both of the operands to double before performing the division. Here is an example:
intx = 2;
inty = 5;
// Wrong: yields result 0.0doublevalue1 = x / y;
// Right: yields result 0.4doublevalue2 = x / (double) y;
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Found in
VisionSystem.java.computeCrosshairHorizontalAngle(Image image, double targetHorizontalAngle, int crosshairNum)
The text was updated successfully, but these errors were encountered: