Hi,
I wanted to use Format function to format numbers (Single) as follows:
If the number is without decimal - show it
If the number has a decimal part - show it with 2 decimal places
So for 4, I want to show 4
For 4.2512 I want to show 4.25
I tried
VB Code:
Format(sngNumber, "#.##")
Problem is that when the number is whole (4) it formats it as "4."
