London Transport (uk.transport.london) Discussion of all forms of transport in London.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old November 8th 10, 12:10 AM posted to uk.railway,uk.transport.london
external usenet poster
 
First recorded activity at LondonBanter: Nov 2010
Posts: 22
Default More Oyster Woes ...



"Dr J R Stockton" wrote in message
nvalid...

In uk.transport.london message
ernal-september.org, Thu, 28 Oct 2010 17:35:20, Sam Wilson
posted:

In article id,
Dr J R Stockton wrote:


...



In JavaScript, where Numbers are Doubles, one does it by taking the
reciprocal. Plus infinity and minus infinity are easily told apart.
The internal sign of a Number X (that is not NaN) can be determined by
comparing X + 1/X with a zero. Min(Abs(X+1/X)) = 2, at least for real
numbers.


Yeah, but you can't say something like

if (result == +0)
{
...
}
else if (result == -0)
{
...
}

can you?

Sam

and have it operate differently from



In JavaScript, float +0 and -0 are arithmetically equal in value, but
their reciprocals differ. Integer operations are 32-bit 2's complement;
+0 & -0 convert to the same Hex value, 00000000. It's all in ECMA 262
5th Edn, free PDF.

Yeah, but how does it define N,S,E,W,Up & Down..:-)

--
Cheers, Steve.
To reply, replace the rodent with the unsullied maiden.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wessie woes Paul Cummins[_2_] London Transport 0 April 17th 10 10:17 AM
More Oyster ripoffs [email protected] London Transport 20 July 24th 08 06:54 AM
oyster journey history no more Larry Lard London Transport 2 September 12th 06 01:53 PM
More Oyster Card Questions Mark Brown London Transport 9 February 4th 04 12:18 PM


All times are GMT. The time now is 03:37 PM.

Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 London Banter.
The comments are property of their posters.
 

About Us

"It's about London Transport"

 

Copyright © 2017