Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
RoundDown function not working in code
I'm using Excel 2003 VBA. In the immediate window I enter
? application.rounddown(-0.775,2) and it gives the result -0.77 In the following code 'Deal with SHEETCREDIT SheetCredit = CashIn - CashDue 'dealing with negative sheetcredit If SheetCredit < 0 Then SheetCredit = Application.RoundDown(SheetCredit, 2) 'display this on the form SheetsForm.DriverCreditBox.Value = Format(SheetCredit, "currency") SheetCredit is -0.775 and the result is -0.78 Any idea why? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Roundup and rounddown function - how to combine | Excel Worksheet Functions | |||
rounddown + if function | Excel Worksheet Functions | |||
ROUNDDOWN Excell function | Excel Worksheet Functions | |||
Roundup / Rounddown function | Excel Programming | |||
ROUNDDOWN function reference | Excel Programming |