Article Details
Id: | 18359 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 3.04.01 |
Opened: | 31/05/2021 |
Closed: | 14/07/2021 |
Released: | 31/08/2021 |
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 Double
dblTemp = 12
finBL.DebugPrint(finBL.FormatPercentage(dblTemp/100,4,,,2))
dblTemp = 12.123456
finBL.DebugPrint(finBL.FormatPercentage(dblTemp/100,4,,,2))
dblTemp = 12.12
finBL.DebugPrint(finBL.FormatPercentage(dblTemp/100,2,,,4))