integer - How to convert double to int in Android? -


this question has answer here:

i wants convert double int in ui rendering double backend want convert integer.

double d = 45.56;  output = 4556; 

please can tell me how value in format.

try way, courtesy

double d = 45.56; int = (int) d; 

for better info can visit converting double integer in java


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -