How to use setprecision in C++

I am new in C++ , i just want to output my point number up to 2 digits. just like if number is 3.444, then the output should be 3.44 or if number is 99999.4234 then output should be 99999.42, How can i do that. the value is dynamic. Here is my code. but its … Read more

Poker hand range chart visualization in R

Is it possible to make visualization of poker hand range chart in R like this? I want to show how many times player had certain hand, so there will be numbers with frequency. Little 5 under title AA if player had AA 5x times and so on. It would be great change color of each … Read more

Categories R

Changing one character in a string

Don’t modify strings. Work with them as lists; turn them into strings only when needed. Python strings are immutable (i.e. they can’t be modified). There are a lot of reasons for this. Use lists until you have no choice, only then turn them into strings.

Discord music bot not working

Ok, I have two solutions for you. This first one is a block of code I have used and I can say it works from experience. It requires ffmpeg, opusscript and ytdl: This second option which I would highly recommend is a node module that has many more advanced features that are hard to implement such as: musichelp [command]: … Read more