I have a bug in my website when display salary.
If number insert < 1000$
. It will show result like 0,x00
.
Example:
user inserts to admin page salary: 800$
. It will show like 0,800$
.
If salary > 1000$
, it shows correct.
My function to GetSalary()
like:
public string GetSalary(object SalaryFrom, object SalaryTo)
{
return "$" + Protector.Int(SalaryFrom).ToString("0,000") + " - " + Protector.Int(SalaryTo).ToString("0,000");
}