double value တခုကို int ေျပာင္းခ်င္ရင္
double value တခုကို int ေျပာင္းခ်င္ရင္
==========
(int)Math.floor(your_num);
5.779 ဆိုရင္ 5 ရပါမယ္။
(int)Math.ceil(your_num);
5.112 ဆိုရင္ 6 ရပါမယ္။
(int)Math.round(your_num);
5.779 ဆိုရင္ 6 ရပါမယ္။
https://www.facebook.com/groups/185208038700073/
==========
(int)Math.floor(your_num);
5.779 ဆိုရင္ 5 ရပါမယ္။
(int)Math.ceil(your_num);
5.112 ဆိုရင္ 6 ရပါမယ္။
(int)Math.round(your_num);
5.779 ဆိုရင္ 6 ရပါမယ္။
https://www.facebook.com/groups/185208038700073/
Comments
Post a Comment