sinemakinci1 / Cpp-Copilot-VSC-Demo

0 stars 0 forks source link

Use `quiet_NAN` rather than `nan` #10

Closed TartanLlama closed 1 month ago

TartanLlama commented 1 month ago

https://github.com/sinemakinci1/Cpp-Copilot-VSC-Demo/blob/9db124b0e801cfc5331261c1867d0d7e1fa4f6c6/src/calculator.cpp#L17

std::nan is for converting string representations into NaNs, better to use std::numeric_limits<double>::quiet_NaN()