|
|
Перевод Cуммы из одной валюты в другую
Public Function esChangeCurr(srsSum As Currency, srsCurse As Currency, _
dstCurse As Currency, _
Optional frp As Byte = 2) As Currency
Dim k As Double
On Error GoTo esChangeCurrErr
k = CDbl(srsCurse / dstCurse)
esChangeCurr = CCur(Round(srsSum * k, frp))
Exit Function
esChangeCurrErr:
esChangeCurr = 0: Err.Clear
End Function
|
|