java - How to parse string to int? -
my string 743.4445 , want show 743 has parse double , parse int try this
(int)(double.valueof(743.4445);
(actually 743.4445 server don't know value)
what suppose do?
why not google "java whole number"
double d = double.valueof(s.trim()).doublevalue();
heck, matter why not use indexof on string looking .? :)
Comments
Post a Comment