How to ensure float value is not out of bound?

前端 未结 0 1991
-上瘾入骨i
-上瘾入骨i 2020-11-22 01:57

I have the following code:

float numb = 0.00f;
if (numb > FLT_MIN && numb < FLT_MAX)
    printf("Valid");
else
    printf("NOT Va         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题