explicit cast

image_pdfimage_print
   
 

using System;

class ExplicitConv {
    static void Main() {
        double a = 5.654321;
        int b;

        b = (int)a;
        Console.WriteLine("The value is {0}", b);
    }
}

    


This entry was posted in Data Types. Bookmark the permalink.