how do you convert any value int, double, float and so on into a decimal with only .0 decimal place
example
height 155.55
height2 213.5
height3 444.0
average height = 271.0166666666=(height+2+3)/3
but i want to display only 271.0
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 5 of 5
Threaded View
|
Click Here to Expand Forum to Full Width |