Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Does Php define double-precision or floating-point variables?
Does Php define double-precision or floating-point variables?
It doesn't need a special definition, just like this = = "$ a = 0.00. It feels like there is no difference between double and float. The value you give it later is decimal, which is naturally double or float. If there is no decimal, it is int. If you want to leave a few digits after the decimal point, you can use the round function.