Well, I need to get ridd of some decimals... I have a paging records script that do not have to use pagecount, absolutepage and so on...
So in order to do the tric I had to count records and then divide the number of records to the number of my page size. If I use Round(... everything gets rounded at ,5 so, for a pagesize of 10 records, when I have 6 records it shows me 2 pages to page instead of only one. The only fix I found was the one bellow, but, although it does the job, doesn't look very "pro".
allpages = (allrecords / pagesize) - 0.5
allpages = CInt(allpages) + 1
This way, from 0,5 to 1 it gets rounded at 0, from 1 to 1,9 at 1 and s.o.
So, what I want is a formula to get ridd off all decimals (from X,01 to X,99). As in the example above, instead of 0,6 to have only 0 and get rid of 6.