DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub aa()
Dim deger1 As Double, deger2 As Double
Set ex = CreateObject("excel.application")
deger1 = 11.025
deger2 = 11.875
MsgBox ex.worksheetfunction.Round(deger1, 2)
MsgBox ex.worksheetfunction.Round(deger2, 2)
Set ex = Nothing
End Sub
Me.Metin4.Value = Round((Me.Metin0.Value [COLOR="Red"]+ 0.1[/COLOR]) * Me.Metin2.Value, 2)
Me.Metin6.Value = Round((Me.Metin0.Value [COLOR="red"]+ 0.1[/COLOR]) * Me.Metin2.Value, 2)
Me.Metin8.Value = Me.Metin0 + Me.Metin4 + Me.Metin6
Public Function RoundToLarger(dblInput As Double, intDecimals As Integer) As Double
'Implements a variant of the Round() function, that rounds-to-larger
'rather than rounds-to-even, like in Excel:
Dim strFormatString As String 'Format string
Dim strResult As String
'If input is zero, just return zero. Else format as appropriate:
If dblInput <> 0 Then
strFormatString = "#." & String(intDecimals, "#")
If Right(strFormatString, 1) = "." Then
strResult = Format(dblInput, "#")
Else
strResult = Format(dblInput, strFormatString)
End If
Else
strResult = "0"
End If
'If the result is zero, Format() will return "." - change this to "0":
If strResult = "." Then
strResult = "0"
End If
RoundToLarger = CDbl(strResult)
End Function
RoundToLarger(Metin0*Metin2,2)
Sayın beab05 sizin yaptığınızda fon hanesi 100.50 çıkıyor 1.01 çıkması lazım sayın modalı sizin söylediğiniz gibi zaten örenekte ancak toplama yaptığımızda örneği incelerseniz sonuç 102,51 çıkıyor doğrusu 102,52 olmalı ilgilendiğiniz için ikinizede teşekkürler ama ikiside sorunu çözmedi.
Private Function myRound(sayi As Double, basamak As Byte) As Double
myRound = Round((sayi + 0.00000001), basamak)
End Function
myRound(Metin0*Metin2,2)
Private Sub Komut10_Click()
Me.Metin4.Value = Round(CStr(Me.Metin0.Value) * CStr(Me.Metin2.Value), 2)
Me.Metin6.Value = Round(CStr(Me.Metin0.Value) * CStr(Me.Metin2.Value), 2)
Me.Metin8.Value = Me.Metin0 + Me.Metin4 + Me.Metin6
End Sub