Hi, everyone...
I've just started using Access, and now have a field that I need to
round up to days. The field is in hours, the smallest figure being
0.01 and the largest 2400. What I need to do is round this up to days
without adding a day to the whole numbers, which is proving impossible
for me!
Total newbie help required!!
Thanks. 4 1648
On Mar 28, 7:46 am, "Brainfire" <dek...@gmail.comwrote:
Hi, everyone...
I've just started using Access, and now have a field that I need to
round up to days. The field is in hours, the smallest figure being
0.01 and the largest 2400. What I need to do is round this up to days
without adding a day to the whole numbers, which is proving impossible
for me!
Total newbie help required!!
Thanks.
If "x" was the value you wanted to convert, then this should work:
Int(((x*3600)+86399)/86400)
If x is the field value, try -(int(-x/24))...
>From Help "if number is negative, Int returns the first negative
integer less than or equal to number"
Wish I could say I thought of this trick - alas I am not that smart.
Tom
On Mar 28, 2:58 pm, "Tom" <rtmn...@swbell.netwrote:
If x is the field value, try -(int(-x/24))...
From Help "if number is negative, Int returns the first negative
integer less than or equal to number"
Wish I could say I thought of this trick - alas I am not that smart.
Tom
int(x + .99999) should work too I would think. It's not nearly a
clever as Tom's suggestion tho.
-- Larry Engles
Yup, got it sussed - thanks guys. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: joeandtel |
last post by:
If I have a value that is 53.123499999, how can I round it to 53.12?
|
by: Matias Silva |
last post by:
Can anybody tell me why I am getting rounding errors
using the ROUND function.
3.7125 rounds to 3.70 when I use the following:
TRUNCATE(ROUND(units_pay_amount * fees_amount, 2),2)))
The correct...
|
by: Andï |
last post by:
I have a query which subtracts (date and time out) from (date and time in), and I need to round up, so that a hire period of 1.4899 etc days would appear as 2 days.
Any ideas please?
Thank...
|
by: needin4mation |
last post by:
I understand this is a asp.net group, but thought I would post this
here for comments. I admit I have used this post in another group, but
it has less traffic. Here's to hoping I'm just blind to...
|
by: kkmigas |
last post by:
Can some one explain if this can be fixed using php.ini settings ?
echo "round 20.545 -".round(20.545,2)."<br>";
echo "round 20.555 -".round(20.555,2)."<br>";
echo "number_format 20.545...
|
by: lilmax88 |
last post by:
I have a program in which I need to take a numeric value for dollars.
There is a "set" function that must screen the value for the following
3 conditions with the indicated handling functionality:...
|
by: =?Utf-8?B?UmVuZQ==?= |
last post by:
Hello everyone
I have a problem with Math.Round, it´s ocurring some strange:
Math.Round(12.985) = 12.98, it´s wrong. It should be: 12.99
Why?? What is the problem?
Help ME !!!!
|
by: dkruger |
last post by:
Hi Everyone,
I am having a little problem that I am hoping someone can help me out
with. In one of my scripts, I am working with some dollar values, and
using round to change the result...
|
by: josh logan |
last post by:
Hello,
I need a round function that _always_ rounds to the higher integer if
the argument is equidistant between two integers. In Python 3.0, this
is not the advertised behavior of the built-in...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |