Hi @sshitol
If(inputNumber Mod 1 = 0, String.Format(“{0:N0}”, inputNumber), String.Format(“{0:N2}”, inputNumber))
Try this.
- Mod 1 = 0: Checks if the number is a whole number.
- String.Format(“{0:N0}”, inputNumber): Formats the number without decimals.
- String.Format(“{0:N2}”, inputNumber): Formats the number with two decimal places.