Question : MS Excel

Hello
This question may be trivial, yet allow me to ask.  I am trying to determine whether there would be significant lose between rounding off to 3 digits or between truncating (rounding off to zero) up to 3 digits to the right of the decimal point.  I do not have a range for the numbers being truncated, but let's say between 1 ounce and 1 pound.  And there will be 6 million measurements.  Which might have the biggest error and how does one calculate this?
While this site might not be reputable, it is what I found; http://en.wikipedia.org/wiki/Truncation
It mentioned that; "The truncation error can be twice the maximum error in rounding.
Please see the attached Excel file.  Any comments will be appreciated.
Attachments:
 
Formulas for Error Calculations
 

Answer : MS Excel

OK, I have tested it....we need to specify a specific domain controller to connect to, so in strNewOUPath, add the domain controller name, and it should work.

Regards,

Rob.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
Const ADS_SECURE_AUTHENTICATION = &H1
Const ADS_USE_ENCRYPTION = &H2
Const ADS_SERVER_BIND = &H200
strNewOUPath = "LDAP://dcserver.domain.com/OU=Computers,OU=MainSite,OU=Sites,dc=domain,dc=com"
strComputerPath = "LDAP://CN=ComputerNameToMove,ou=IT Computers,OU=MainSite,OU=Sites,dc=domain,dc=com"
strUser = "domain\administrator"
strPassword = InputBox("Enter password:")

Set objDSO = GetObject("LDAP:")
Set objNewOU = objDSO.OpenDSObject(strNewOUPath, strUser, strPassword, ADS_SECURE_AUTHENTICATION + ADS_SERVER_BIND)
On Error Resume Next
objNewOU.MoveHere strComputerPath, vbNullString
If Err.Number = 0 Then
	MsgBox "Computer moved successfully."
Else
	MsgBox "Error " & Err.Number & ": " & Err.Description
End If
Random Solutions  
 
programming4us programming4us