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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -