Kaydet (Commit) 4b603aaa authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:defaultparams

Change-Id: I511b95a62f43f9f726fbe5253c7ffc6b510b0346
üst bbc6414b
...@@ -1002,13 +1002,13 @@ double GetAmordegrc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int ...@@ -1002,13 +1002,13 @@ double GetAmordegrc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int
fAmorCoeff = 2.5; fAmorCoeff = 2.5;
fRate *= fAmorCoeff; fRate *= fAmorCoeff;
double fNRate = ::rtl::math::round( GetYearFrac( nNullDate, nDate, nFirstPer, nBase ) * fRate * fCost, 0 ); double fNRate = ::rtl::math::round( GetYearFrac( nNullDate, nDate, nFirstPer, nBase ) * fRate * fCost );
fCost -= fNRate; fCost -= fNRate;
double fRest = fCost - fRestVal; // aboriginal cost - residual value - sum of all write-downs double fRest = fCost - fRestVal; // aboriginal cost - residual value - sum of all write-downs
for( sal_uInt32 n = 0 ; n < nPer ; n++ ) for( sal_uInt32 n = 0 ; n < nPer ; n++ )
{ {
fNRate = ::rtl::math::round( fRate * fCost, 0 ); fNRate = ::rtl::math::round( fRate * fCost );
fRest -= fNRate; fRest -= fNRate;
if( fRest < 0.0 ) if( fRest < 0.0 )
...@@ -1017,7 +1017,7 @@ double GetAmordegrc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int ...@@ -1017,7 +1017,7 @@ double GetAmordegrc( sal_Int32 nNullDate, double fCost, sal_Int32 nDate, sal_Int
{ {
case 0: case 0:
case 1: case 1:
return ::rtl::math::round( fCost * 0.5, 0 ); return ::rtl::math::round( fCost * 0.5 );
default: default:
return 0.0; return 0.0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment