The requirement is to format the decimal number in a string, but not more than 10 digits in total, for example:
- 7846.05368740952 → "7846.053687"
- 47585.7350421593 → "47585.73504"
Using {0: 0. ######} obviously does not work, because it does not take into account the total number of digits ... is there a format string that does this kind of formatting, or does it require additional code?
EDIT: I am trying to set the cell format using Aspose.Cells using the Custom property in the cell style. G10 seems to not work.
source
share