How can I use "double" in "System.Threading.Thread.Sleep(int)".
adobe71 0 Junior Poster in Training
Recommended Answers
Jump to Postclass Test { static void Main() { double x = 1234.7; int a; // Cast double to int. a = (int)x; System.Console.WriteLine(a); } } // Output: 1234
All 4 Replies
powerbox 13 Light Poster
adobe71 0 Junior Poster in Training
adams161 21 Posting Whiz in Training
adobe71 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.