| View previous topic :: View next topic |
| Author |
Message |
DeMoNHeaD Guest
|
Posted: Thu Jun 27, 2002 11:04 am Post subject: Time and money calculation???? |
|
|
| is there any way for vds4 to calculate money operation?? Like US 8.32 cent deducted from US 1743.56 cent? Also is there any way to calculate time if given time started and time ended like Start at 7:45 am and ended at 8:23 PM. How much the time had elapsed? |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Jun 28, 2002 3:58 am Post subject: |
|
|
Yes, VDS can do these things. I don't have any code handy nor the time at the moment to actually do this work for you, so please read the help file for VDS and check into the examples with VDS and here on VDS World.
Also search the forums here for previous postings regarding these, as I remember not so long ago someone else working on the @datetime() calculations.
Good luck,
-Garrett |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Fri Jun 28, 2002 8:42 pm Post subject: |
|
|
To find 8.32 cents deducted from US 1743.56 cents
(I assume this is fractional cents???):
%t = @format(@fsub(1743.56, 8.32), .0)
INFO test %t
I posted a simple procedure to find elapsed time
in the VDS3 Share Code section:
http://www.vdsworld.com/forum/viewtopic.php?t=389
Although the @datetime() function will return a float
for any date, I have not found a way to do so for an
arbitrary time (such as 12:15 pm), so the start and
end time floats must be retrieved as they occur.
Anyone know how to retrieve a time float (other than
the current time)?
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
|