howdy, this is what I'm getting

'nan' is printed as "1.#QNAN'
'inf' is printed as "1.#INF"

all of which are plainly printed as 'nan'/'inf' on MacOS

cheers