Posts

Showing posts with the label nan

Does casting to or from a double and a float preserve infinity and NaN?

23 When casting double infinity to float and vice versa, will it still be infinity? Is it the same with NaN? c++ floating-point nan Share Improve this question Follow edited Apr 7 at 5:03 Peter Cordes 242k 34 34 gold badges 417 417 silver badges 593 593 bronze badges ...