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

c# - Store DBContext Log in other EF table -

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

Nuget pack csproj using nuspec -