|
Partner
|
|
|
Nachkommastellen Wert erfahren
Autor:
Timo Boehme
|
Sprache:
VB.NET
|
Bewertung:
noch nicht bewertet
|
Anzahl der Aufrufe:
7920
|
Beschreibung:
Gibt den Wert zurück nach ohne ganze Zahlen ist.
Abgelegt unter: decimal, dezimal, runden, gerundet, punkt, komma, wert truncate.
|
| Visual Basic |
1
2
3
4
5
6
7
8
9
|
Public Function GetDecimals(ByVal V As Single) As Single
Dim i As Integer = Global.System.Math.Truncate(V)
Return V - i
End Function
Public Function GetDecimals(ByVal V As Double) As Double
Dim i As Integer = Global.System.Math.Truncate(V)
Return V - i
End Function
|
|
Kommentare:
(Zum Schreiben von Kommentaren bitte anmelden.)
|
SAN-Software schrieb am:
23.09.2008 12:41:56
|
|
Diese Snippets könnten für Sie interessant sein:
|
|
|
|
|
|
|
|
|