![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Re: How display 123.456789 as 123.46 in VB? /end
|
|
|||
|
Re: How display 123.456789 as 123.46 in VB? /end
On Oct 7, 10:57*am, "rcook349" <rc...@westinis.com> wrote:
> First, don't ask question in the subject - it causes problems for many readers. Second, look up Math.Round. Thanks, Seth Rowe [MVP] http://sethrowe.blogspot.com/ |
|
|||
|
Re: How display 123.456789 as 123.46 in VB? /end
system.math.round
http://msdn.microsoft.com/en-us/libr...nd(VS.71).aspx to get true midpoint rounding you must specify MidpointRounding.AwayFromZero in the MidpointRounding parameter Ottherwise you might get unexpected results in certain cases ( bankers rounding ) Michel Posseth [MCP] http://www.vbdotnetcoder.com "rcook349" <rcook@westinis.com> schreef in bericht news:72DC27CF-4743-4D15-B00A-B56495D5EE06@microsoft.com... > |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|