Limited Past
✅ Quickest way to get a number of decimal places based on an int?
For example, if i input 3 then the output would be 0.001 (3 decimal places to the right)
I could divide the value by 10 for n amount of times but was hoping there may be a cleaner and easier way?
5 replies
How to use use ReadKey in a Task when i'm using ReadKey elsewhere to stop the program from exiting?
I start a Task and then use Console.ReadKey to stop the program from exiting. I want to use ReadKey again in the Task but the first key it reads is from the first Console.ReadKey that I use to stop the program from exiting....Does anyone know a solution to this?
20 replies