How do I get DOUBLE_MAX?

前端 未结 6 2199
我在风中等你
我在风中等你 2020-12-14 05:24

AFAIK, C supports just a few data types:

int, float, double, char, void enum.

I need to store a number that could reach into the high 10 di

6条回答
  •  轮回少年
    2020-12-14 05:59

    INT_MAX is just a definition in limits.h. You don't make it clear whether you need to store an integer or floating point value. If integer, and using a 64-bit compiler, use a LONG (LLONG for 32-bit).

提交回复
热议问题