Method round(float a)
Return type: int
Member of:
java.lang.Math
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
return Math.round(value);
2
return new Float(Math.round(f*100.f)/100.f);
3
int n = Math.round(a * 100);
4
g.fillRect(0,0,Math.round(this.getWidth()/100f*ratio)-4,this.getHeight()-1);
5
this.a = Math.round( a * 255 );
6
int work = Math.round(this.percentComplete * this.totalWork);
7
r.x -= Math.round((float)usr2dev.getTranslateX());
8
int rand1 = Math.round(randGen.nextFloat() * 10);
9
int work = Math.round(this.fPercentComplete * this.fTotalWork);
10
int width = Math.round(((float)height)*xPercentageOfy);
11
newPage = Math.round(m_viewPanel.getPageNoAt(p));
12
duration = ((float)Math.round( duration * 1000 ) / 1000 );
13
StringBuffer buffer = new StringBuffer(Math.round(l * 1.4f));
14
startPoint = new Point(0, Math.round((float)d.getHeight()) / 2);
15
int stPos = Math.round (
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.