Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What should I do if integer data overflow is urgently required in C language?
What should I do if integer data overflow is urgently required in C language?
The data of unsign long can be expressed in the range of 0 ~ 4294967295 (2 32), which is the 9th power of 10.

You only use float or single precision, and you can't exceed the limit of a 32-bit machine.

You get the ninth power of 10, which is equivalent to 10/8. It's strange not to overflow.

If it is changed to double-precision floating-point type, it should meet the demand.