Apr 25, 2001 #1 mhall Technical User Sep 26, 2000 13 GB I want to convert a Double to an Int to use the value in a progress bar, can anyone help. Thanks
Apr 25, 2001 #2 cwinans Programmer Mar 26, 2001 102 US [tt]... int i = new Double(d + .5).intValue(); d = your double variable + .5 is used to round the int. with out it the decimal portion of the double is just truncated ...[/tt] I hope this helped! ;-) - Casey Winans Upvote 0 Downvote
[tt]... int i = new Double(d + .5).intValue(); d = your double variable + .5 is used to round the int. with out it the decimal portion of the double is just truncated ...[/tt] I hope this helped! ;-) - Casey Winans
Apr 25, 2001 Thread starter #3 mhall Technical User Sep 26, 2000 13 GB Thanks problem solved Upvote 0 Downvote