Nov 17, 2005 #1 ocan Programmer Jun 28, 2004 31 US Is there is a function that is equivalent to the MROUND function in Excel that can be used in Access?
Is there is a function that is equivalent to the MROUND function in Excel that can be used in Access?
Nov 18, 2005 #2 mp9 Programmer Sep 27, 2002 1,379 GB For positive numbers you could use: n - (n Mod m) e.g. x - (x Mod 3) would be equivalent to MRound(x, 3) where x is a positive number. http://www22.brinkster.com/accessory/ Upvote 0 Downvote
For positive numbers you could use: n - (n Mod m) e.g. x - (x Mod 3) would be equivalent to MRound(x, 3) where x is a positive number. http://www22.brinkster.com/accessory/
Nov 18, 2005 #3 mp9 Programmer Sep 27, 2002 1,379 GB And to allow for negative number too, try this: n - (n Mod (Sgn*m)) e.g. x - (x Mod (Sgn(x)*3)) would be equivalent to MRound(x, 3) for any number. http://www22.brinkster.com/accessory/ Upvote 0 Downvote
And to allow for negative number too, try this: n - (n Mod (Sgn*m)) e.g. x - (x Mod (Sgn(x)*3)) would be equivalent to MRound(x, 3) for any number. http://www22.brinkster.com/accessory/