Menu

#1292 nan/inf bug on windows

v0.47
open
nobody
None
5
2019-01-22
2017-04-10
No

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

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

Discussion

  • IOhannes m zmölnig

    could you provide an example patch?

     
  • IOhannes m zmölnig

    it seems that this is just the representation of NaNs/Inf on Windows.
    see https://stackoverflow.com/questions/43333192/how-do-i-make-printf-use-nan-on-w32

    i don't think we should do much about this.

     
  • Alexandre Porres

    yeah, I assumed the reason was something like that, but I still think a cross platform standard would be good

     

Anonymous
Anonymous

Add attachments
Cancel