[VB.NET 2008] Nachkommastelle

Kenner3000

Mitglied
[VB.NET] Nachkommastelle

Hallo erstmal, ich möchte folgende Funktion durchführen:

dim a as doubel
a = 40,5

if a = hat nachkommastelle then
Form2.show
end if

habe keinen Plan wie das geht:confused::confused:
 
Zuletzt bearbeitet:
Hallo,

C#-Code (ähnlich in vb):

Code:
                double help = 3.02;

                if ((help - (int)help) == 0)
                {
                    MessageBox.Show("WERT ohne Nachkommastelle");
                }
                else
                {
                    MessageBox.Show("WERT mit Nachkommastellen");
                }
 
Zurück