SyntaxFix
Write A Post
Hire A Developer
Questions
Math.round(value) round the value to the nearest whole number.
Math.round(value)
Use
1) b=(int)(Math.round(a)); 2) a=Math.round(a); b=(int)a;