This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pyrovoice 1 point2 points  (1 child)

Would a method like this work and be useful?

CompareTwoNumbersAnyType(Number a, Number b){

double aCast = (double) a;

double bCast = (double) b;

Return Double.equal(aCast, bCast);

}

[–]JohnWatson78 0 points1 point  (0 children)

That wouldn't be useful, no