I dislike odd numbers
이전 댓글 표시
Can someone please upvote this question so that I have an even number of rep. points. I find even numbers much more pleasant to look at. Thanks!
댓글 수: 14
Sean de Wolski
2017년 12월 14일
Maybe we can get you four upvotes...
Rik
2017년 12월 14일
If I were really mean, I would upvote this as well ;)
Matt J
2017년 12월 14일
Matt J
2018년 4월 25일
Rik
2018년 4월 25일
Congratulations!
Stephan
2018년 4월 26일
sorry - 10005 ;-)
Rik
2018년 4월 26일
10004, so let's start the edit war with the upvotes ;)
Matt J
2018년 4월 26일
Bob Thompson
2018년 4월 26일
편집: Bob Thompson
2018년 4월 26일
See, now this just feels like a challenge to make every number possible on this thread to be odd.
Catalytic
2020년 2월 19일
True. I've never understood how odd numbers became a thing.
Rik
2020년 2월 19일
As you can infer from this conversation: you get 1 point for a vote on your question, 2 for a vote on your answer, and 4 if your answer is accepted (unless it is your own question).
DGM
2023년 7월 7일
You got your even reputation ...

... but at what cost?
답변 (1개)
Jan
2018년 4월 26일
Dear Matt J, simply redefine "odd".
function T = isOdd(X)
T = false(size(X));
end
Or modify the IEEE754 doubles:
function X = fixMyNumbers(X)
X = X - rem(fix(X), 2);
end
I'm sure we can ask MathWorks to implement this on the forum's server.
Or simply forget about the reputation number, because you have fancy and colorful badges now.
카테고리
도움말 센터 및 File Exchange에서 Historical Contests에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!