abs flaw in Safari

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steven Daedelus

    #1

    abs flaw in Safari

    This ain't a question so much as an enraged shout-out.

    Try this in Safari:

    alert(Math.abs( 0));

    You'll get -0, instead of 0 like you should. How incredibly irritating.

    stedae
  • Mick White

    #2
    Re: abs flaw in Safari

    Steven Daedelus wrote:
    [color=blue]
    > This ain't a question so much as an enraged shout-out.
    >
    > Try this in Safari:
    >
    > alert(Math.abs( 0));
    >
    > You'll get -0, instead of 0 like you should. How incredibly irritating.
    >
    > stedae[/color]

    I don't, Safari 1.0.2, OSX 2.8.
    Mick

    Comment

    • Steven Daedelus

      #3
      Re: abs flaw in Safari

      In article <YgVEc.201389$j 24.75804@twiste r.nyroc.rr.com> ,
      Mick White <mwhite13@BOGUS rochester.rr.co m> wrote:
      [color=blue]
      > Steven Daedelus wrote:
      >[color=green]
      > > This ain't a question so much as an enraged shout-out.
      > >
      > > Try this in Safari:
      > >
      > > alert(Math.abs( 0));
      > >
      > > You'll get -0, instead of 0 like you should. How incredibly irritating.
      > >
      > > stedae[/color]
      >
      > I don't, Safari 1.0.2, OSX 2.8.
      > Mick[/color]

      That's odd. I wonder if they added this error later:

      Safari 1.2.2, OSX 10.3.4

      Comment

      • Mick White

        #4
        Re: abs flaw in Safari

        Steven Daedelus wrote:

        [color=blue][color=green][color=darkred]
        >>>Try this in Safari:
        >>>alert(Math.a bs(0));
        >>>
        >>>You'll get -0, instead of 0 like you should.
        >>>stedae[/color]
        >>
        >> I don't, Safari 1.0.2, OSX 2.8.
        >>Mick[/color]
        >
        >
        > That's odd. I wonder if they added this error later:
        >
        > Safari 1.2.2, OSX 10.3.4[/color]

        Comment

        Working...