Search code examples
cdigit

How to use 12 digit number in C?


I am dealing with a math example. I need to use 12 digit number for my code. So which datatype should i use, to use the number in my functions?


Solution

  • 64-bit integers (long, int64_t, unsigned long, uint64_t) should do the trick, or if you need decimals, double or long double.