Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - The difference between a four-byte floating-point number and a two-byte integer
The difference between a four-byte floating-point number and a two-byte integer
The difference between the two is that integers have no decimal parts, and floating-point numbers can have decimal parts.

Floating-point numbers can represent numbers much larger than the integer range.

For some arithmetic operations (such as the subtraction of two very large numbers), using floating-point numbers will lose more precision.