klren0312 / daliy_knowledge

知识积累,正确使用方式是watch
21 stars 4 forks source link

c++判断类型是否是float #774

Open klren0312 opened 1 year ago

klren0312 commented 1 year ago
    if (typeid(num) == typeid(float)) {
       printf("isFloat: %f\n", num);
    }