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
Sean de Wolski 2017 年 12 月 14 日
Maybe we can get you four upvotes...
Matt J
Matt J 2017 年 12 月 14 日
編集済み: Matt J 2017 年 12 月 14 日
Thanks Sean, but four upvotes would leave me odd again ;)
Rik
Rik 2017 年 12 月 14 日
If I were really mean, I would upvote this as well ;)
Matt J
Matt J 2017 年 12 月 14 日
@Rik, I understood the risks going into this :-)
Matt J
Matt J 2018 年 4 月 25 日
Do I hear 10000?
Rik
Rik 2018 年 4 月 25 日
Congratulations!
Matt J
Matt J 2018 年 4 月 25 日
編集済み: Matt J 2018 年 4 月 25 日
Thanks, Rik. Unfortunately someone else pushed me over the threshold before I could land on the nice and round number 10,000 but it's good to be even again.
Stephan
Stephan 2018 年 4 月 26 日
sorry - 10005 ;-)
Rik
Rik 2018 年 4 月 26 日
10004, so let's start the edit war with the upvotes ;)
Matt J
Matt J 2018 年 4 月 26 日
Nice try, Rik, but unvoting does not impact rep points. :)
Bob Thompson
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
Catalytic 2020 年 2 月 19 日
True. I've never understood how odd numbers became a thing.
Rik
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
DGM 2023 年 7 月 7 日
You got your even reputation ...
... but at what cost?

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2018 年 4 月 26 日

2 投票

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.

1 件のコメント

Matt J
Matt J 2018 年 4 月 26 日
I see (+1), but would a rose by any other name ...

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeHistorical Contests についてさらに検索

質問済み:

2017 年 12 月 14 日

コメント済み:

DGM
2023 年 7 月 7 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by