Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to force cosmetic surgery
How to force cosmetic surgery
Forced type conversion, the syntax is:

(Expected converted type) var // For example, convert the variable var of double into int, (int)var.

Only the value before the decimal point will be preserved in the previous conversion. If you need to achieve "rounding", you must handle it yourself.