Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number.MIN_VALUE 2

Status
Not open for further replies.
Joined
Dec 8, 2003
Messages
17,047
Location
GB
Am I missing something really obvious here? I would expect this to alert "true", but it alerts "false":

Code:
alert(0 > Number.MIN_VALUE);

Surely Number.MIN_VALUE represents the lowest possible number that JS can handle (which will be negative), and thus zero will always be greater than it?

Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
MIN.VALUE is the smallest positive number JS can handle.

Try alerting it.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top