Thread
:
Rounding numbers
View Single Post
#
2
08-12-2006, 00:18
MattD
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
Re: Rounding numbers
You can use the Math.round() method. Below is the two definitions of the method.
Code:
public static int round(float a) public static long round(double a)
__________________
GUS Robotics Team 228
2010
WPI Engineering Inspiration Award
2010
WPI Regional Champions (Thanks 230 & 20!)
2010
CT VEX Champions
2010
CT VEX Innovate Award
2009
QCC VEX Champions
2009
CT Motorola Quality Award
2007
CT J&J Sportsmanship Award
2006
CT Best Website Award
MattD
View Public Profile
Visit MattD's homepage!
Find all posts by MattD
Find CD-Media Photos by MattD
Find CD-Media Papers by MattD