• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

There a NaN Seats Available

 
Marshal
Posts: 3409
493
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was hoping to book some rail travel from Vancouver to Seattle, but sadly there were NaN reserveable coach seats available ...



 
Sheriff
Posts: 67502
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Must be from Maine. "We don' put up with NaN of that nonsense up heeyar."
 
Marshal
Posts: 72074
312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think it is worse than that; NaN people have already reserved seats.
 
Sheriff
Posts: 7947
548
Mac OS X VI Editor BSD Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I thought they introduced bug in calculations, hence got - "Not a Number".
 
author & internet detective
Posts: 40487
823
Eclipse IDE VI Editor Java
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Liutauras Vilda wrote:I thought they introduced bug in calculations, hence got - "Not a Number".


But it is funnier to make jokes
 
Ron McLeod
Marshal
Posts: 3409
493
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Liutauras Vilda wrote:I thought they introduced bug in calculations, hence got - "Not a Number".


Assuming that they are not selling tickets for for less an a whole seat, should the result of any calculation ever be a floating point value?
 
Campbell Ritchie
Marshal
Posts: 72074
312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It't the number of people that is a floating‑point number, some of them not being all there.
 
Jeanne Boyarsky
author & internet detective
Posts: 40487
823
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ron McLeod wrote:

Liutauras Vilda wrote:I thought they introduced bug in calculations, hence got - "Not a Number".


Assuming that they are not selling tickets for for less an a whole seat, should the result of any calculation ever be a floating point value?


You can still try to divide an int by zero though. Doesn't that still give NaN?  
 
Liutauras Vilda
Sheriff
Posts: 7947
548
Mac OS X VI Editor BSD Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:You can still try to divide an int by zero though. Doesn't that still give NaN?


Nope, only floats. And in particular 0 / 0.0; changing first operand to positive > 0 gives infinity, to negative minus infinity. Maybe there are more cases for NaN though, don't know.

Ron McLeod wrote:Assuming that they are not selling tickets for for less an a whole seat, should the result of any calculation ever be a floating point value?


Since it is MD fora here, I'm free to assume what I want You might cannot buy half of a seat, but you can calculate how much it costs
 
Campbell Ritchie
Marshal
Posts: 72074
312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
NaN is defined as 0.0 ÷ 0.0. You can get NaN from various functions e.g. Math.sqrt(−1).
 
Bear Bibeault
Sheriff
Posts: 67502
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Likes 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Every time I see this topic, it makes me hungry.

 
Campbell Ritchie
Marshal
Posts: 72074
312
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know weak puns are allowed on Fridays.
 
Jeanne Boyarsky
author & internet detective
Posts: 40487
823
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bear: What is that? It doesn't look like pie?
 
Bear Bibeault
Sheriff
Posts: 67502
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Naan, a flatbread that I usually associate with Indian food. And completely delicious!
 
Campbell Ritchie
Marshal
Posts: 72074
312
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unless you got for something like a Peshwari naan, you are better off with chapattis.
 
They gave me pumpkin ice cream. It was not pumpkin pie ice cream. Wiping my tongue on this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic