Author Topic: Axe Parser can divide by Zero!  (Read 3676 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Axe Parser can divide by Zero!
« on: March 04, 2010, 11:18:49 pm »
Guess the awnser....

IT'S OVER 9000!!!!

Quote
[23:13:59] <@DJ_Omni> can axe divide by zero?
[23:14:07] <+calc84> let me check
[23:14:16] <geekfail> lol
[23:14:29] <+calc84> D:
[23:14:34] <+calc84> 1/0 is over 9000
[23:14:38] <@DJ_Omni> lol
[23:15:12] <+calc84> so yeah, apparently anything divided by 0 is 65535

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Parser can divide by Zero!
« Reply #1 on: March 04, 2010, 11:21:05 pm »
I like this feature actualy :) When you divide by 0, giving the largest possible number makes the math work usualy :D

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: Axe Parser can divide by Zero!
« Reply #2 on: March 04, 2010, 11:32:46 pm »
Whoa! Crazy!
So from now on, when someone asks what 1/0 is, we can say 65535 ;D.
I do agree with Builderboy that this is a nice feature, although it might produce strange bugs in math programs. Then again, who would ever write math programs in Axe?

Offline miotatsu

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 332
  • Rating: +11/-1
    • View Profile
Re: Axe Parser can divide by Zero!
« Reply #3 on: March 05, 2010, 12:30:01 am »
oh i would

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Parser can divide by Zero!
« Reply #4 on: March 05, 2010, 12:33:14 am »
:O

lol, so how would throwing an error make math programs work better anyway? :P there isn't a really correct answer that can be stored in an int, so as far as I'm concerned this is the best solution (IMHO)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Axe Parser can divide by Zero!
« Reply #5 on: March 05, 2010, 01:23:18 am »
lol yeah true :P

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: Axe Parser can divide by Zero!
« Reply #6 on: March 05, 2010, 02:41:40 am »
Throwing an error lets the user know they entered an invalid input, whereas returning 65535 makes them get a wrong answer.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Axe Parser can divide by Zero!
« Reply #7 on: March 05, 2010, 06:52:20 am »
Nice!  I'm glad it doesn't give an error. ;D

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Axe Parser can divide by Zero!
« Reply #8 on: March 05, 2010, 01:58:48 pm »
Funny quote.
Anyway, Axe Parser at least tries to divide by zero unlike TI-BASIC. It is unsuccessful but closer to the answer. xD
Note that a number divided by a extremely small number gives a large number. :D So divide by 0 would give infinity. But that is just "half true"...
Hobbing in calculator projects.