I'm having some trouble limiting the decimal places in C #.
double x = 1,41293
I wanted to output only from 1.412
I have already tested the following code:
Convert.ToDecimal(x).ToString("0.00", CultureInfo.InvariantCulture)
and
Convert.ToDecimal(x).ToString("N3", CultureInfo.InvariantCulture)