Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Can both integers and real numbers be accurately represented in C program?
Can both integers and real numbers be accurately represented in C program?
Integers can

Not a real number.

Float and double are approximate values in real number storage and cannot be accurate.

In fact, many real numbers have no exact values.

Such as π or natural logarithm e, etc.