How can I use "double" in "System.Threading.Thread.Sleep(int)".

Recommended Answers

All 4 Replies

No you can't use a double in Sleep since its signature requires you to put an int datatype.

You can cast your double to int if you really want to use your double variable.

No you can't use a double in Sleep since its signature requires you to put an int datatype.

You can cast your double to int if you really want to use your double variable.

how can i cast double in int

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.