NEW3.04.01 · Released 31 August 2021
NEWfinPOWER Connect
Released in
3.04.01
31 August 2021
- Opened31 May
- Closed14 Jul
- Released31 Aug
Article 18359
Job J026695
finBL.FormatPercentage function; new option to set the minimum number of decimal places to use
The FormatPercentage Business Layer function now includes an option to set the minimum number of decimal places to use. Previously only the maximum number of decimal places could be specified.
Note, if the maximumDecimalPlaces parameter is less than minimumDecimalPlaces, maximumDecimalPlaces will use minimumDecimalPlaces.
Example code is shown below.
Dim dblTemp As DoubledblTemp = 12finBL.DebugPrint(finBL.FormatPercentage(dblTemp/100,4,,,2))dblTemp = 12.123456finBL.DebugPrint(finBL.FormatPercentage(dblTemp/100,4,,,2))dblTemp = 12.12finBL.DebugPrint(finBL.FormatPercentage(dblTemp/100,2,,,4))