Number Multiplier To Percent Method
| | |
| --- | --- |
| | # Converts a float multiplier to a percentage string. Author: VukeFN |
| | # Example: 1.5 → "+50%", 2.0 → "+100%", 0.5 → "-50%" |
| | ToPercentString<public>(Multiplier:float):string= |
| | if(Percentage := Floor[(Multiplier - 1.0) * 100.0]): |
| | if(Percentage >= 0): |
| | "+{Percentage}%" |
| | else: |
| | "{Percentage}%" |
| | else: |
| | "+0%" |