Discussion Locked
0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Does anyone know how to round down a figure in an Access report. Or alternatively any standard formula for rounding down a number. This ones killing me.
4 replies
by lumberjack
you can use the integer function
int(number) or int(fieldname)
by d_bones
Thanks but I need the answer to two decimal places
by sachin
Give this a try:
(Int(([YourNumber]-0.1)/1000)+1)*1000
I substract 0.1 as a safety just in case the number is exactly 10,000 to leave it at 10,000 rather than making it 11,000.
Function roundDown(numbertoround As Single, dp As Integer) As Single
roundDown = (Int(numbertoround * 10 ^ dp)) / (10 ^ dp)
End Function
'note dp is the number of decimal places you want
this bit of code should solve you problem
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
1 helpful
9 replies
1 helpful
3 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies
Discussion Locked
Best Ways to Improve Website Visibility
0 helpful
5 replies