Re: rounding to 9's
- From: "Mark S. Milley, MCSD (BinarySwitch)" <mark.milley@xxxxxxxxxxxxxxxx>
- Date: Fri, 06 Jul 2007 13:50:56 -0700
Hi Jonathan -
Have you tried rounding to the nearest tenth and subtracting one
hundreth?
Dim myVal As Double
myVal = 41.87
myVal = Math.Round(myVal, 1) - 0.01
Debug.WriteLine(myVal) 'Returns 41.89
myVal = 41.84
myVal = Math.Round(myVal, 1) - 0.01
Debug.WriteLine(myVal) 'Returns 41.79
....sometimes the simplest approaches work the best.
Happy Coding,
-Mark
.
- Follow-Ups:
- Re: rounding to 9's
- From: Joergen Bech
- Re: rounding to 9's
- From: jdrott1
- Re: rounding to 9's
- References:
- rounding to 9's
- From: jdrott1
- Re: rounding to 9's
- From: rowe_newsgroups
- rounding to 9's
- Prev by Date: Re: Novice Help: creating .exe file
- Next by Date: Re: VB.Net Console app needs timer
- Previous by thread: Re: rounding to 9's
- Next by thread: Re: rounding to 9's
- Index(es):
Relevant Pages
|