Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to convert the decimal point of string type into an integer of string type, java
How to convert the decimal point of string type into an integer of string type, java
String? Price? =? "0.0 1";

Double? priceValue? =? Double.parseDouble (price);

int? Cents? =? (int)(priceValue? *? 100);

String? Newprice? =? Integer.toString (cents);