Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That's what this code does..
i = CLng(CDbl(.Value) * 100) d = CDbl(.Value) * 100 If Abs(d - i) 0 Then ' Entered value has a fraction of a cent Try 282.47 if I add MsgBox i & " " & d & " " & .Value & " " & Abs(d - i) just after the d = line above the results are 28247 28247 282.47 3.6379788709171E-12 so basically Double(282.47 * 100) - Long(282.47 * 100) != 0 Not sure how to get around thing correctly.. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calc sometimes off by a penny | Excel Worksheet Functions | |||
Exel 2007 penny off | Excel Discussion (Misc queries) | |||
AutoSum lost a penny | Excel Worksheet Functions | |||
My accounting program is a penny off, Why? | Excel Worksheet Functions | |||
In Excel the total is off by a penny. | Excel Worksheet Functions |