I'm have a hard time trying to format a float with 4 decimal places, for example, I have the number 2.999995, I wanna get only 4 decimal places from this number, 2.9999, when I use .toString("#.####") or .toString("0.0000") it return 2.3000, I don't wanna this, I wanna 2.9999, someone can help me?
Thanks