In this case, I think Nilsson is expecting to approach Pi/2 from 0, which means that Math.inf would be the correct result.
How is Pike supposed to know that, if he supplies a value slightly larger than Pi/2?
What seems strange to me is that Math.pi/2!=it's numerical value.
You are probably confused by the fact that the decimal representation of the float as printed by hilfe does not exactly capture the internal binary representation.