-7
$\begingroup$

Answer in numerical form.

The answer is not an integer. The answer is in string form. The answer is not my love life...

$\endgroup$

closed as unclear what you're asking by Glorfindel, El-Guest, JMP, hexomino, QuantumTwinkie Mar 18 at 18:19

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    $\begingroup$ Is this really a puzzle? $\endgroup$ – Rubio Mar 18 at 15:51
  • 1
    $\begingroup$ It is confusing that "the answer is in string form" however you ask for an answer "in numerical form". Given this wording it appears that you are expecting the answer to be related to programming. In programming there is usually +ve infinity, -ve infinity and NaN. I'm guessing that "The answer is not my love life" is a joke to rule out NaN. My point is that if infinity is the answer that you are expecting then you've kinda mixed up programming and mathematics since infinity and NaN are values in programming however they aren't actually numbers. Even then @Rubio 's point still holds $\endgroup$ – Adam Mar 18 at 18:13
  • $\begingroup$ @Adam NaN doesn't actually work, though, as it doesn't equal itself. +1 or not. $\endgroup$ – John Dvorak Mar 18 at 19:36
  • $\begingroup$ @JohnDvorak however as a string it does! It really depends on the interpretation. Even then we don't know whether the question was asked with the lack of this knowledge or not $\endgroup$ – Adam Mar 18 at 20:15
3
$\begingroup$

Is it

Infinity ∞, because infinity + 1 = infinity

$\endgroup$
  • 4
    $\begingroup$ I hope not, because infinity is not a number. $\endgroup$ – GentlePurpleRain Mar 18 at 15:58
  • $\begingroup$ @GentlePurpleRain Yeah you're right, but it also says the answer is not an integer.. I don't know $\endgroup$ – pirate Mar 18 at 16:06
  • $\begingroup$ @GentlePurpleRain isNaN(1/0) == true $\endgroup$ – John Dvorak Mar 18 at 16:07
  • $\begingroup$ [(1/0.0).is_a?(Numeric), (1/0.0).is_a?(Integer)] == [true, false] $\endgroup$ – John Dvorak Mar 18 at 16:09
  • $\begingroup$ It is a number in some number systems. $\endgroup$ – noedne Mar 18 at 16:28
4
$\begingroup$

Some have expressed concerns whether infinity is a number. My proposal definitely is.

In JavaScript notation:
x = new Number(); x.value = 0; x.valueOf = function(){return this.value++}
x + 1 == x // true

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.