Skip to content

GetDecimalPlaces Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Primitives.dll

int GetDecimalPlaces(decimal value) ​

csharp
int GetDecimalPlaces(decimal value)

Returns the number of significant decimal digits to the right of the decimal point, trimming any trailing zeros. Example: 1.2300m -> 2.