79754862

Date: 2025-09-03 16:34:04
Score: 0.5
Natty:
Report link

Fast way to remove trailing zeros before formatting:

decimal valueWithoutZeros = d / 1.000000000000000000000000000000000m;
string s = valueWithoutZeros.ToString();

https://stackoverflow.com/a/7983330

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-2):
Posted by: Rolf Kristensen