The answer of Math.Floor () is good. I am not sure which VB Fix () environments are defined. As Justin points out, Math.Floor () will not work with negative numbers. You will need to take an absolute value and then multiply the numbers by SGN (). I do not know the exact name of the function that you would use to get SiGN (not sin ()) numbers.
In pseudocode that takes into account negative values, the result will look like this:
result = sgn( num ) * floor( abs( num * RoundToDig ) ) / RoundToDig
- Fluffy cow mu and unpacked.
Wyrdestgeek
source share