Answer the question
In order to leave comments, you need to log in
What is the error of invalid character SI SHARP?
public string IntReduse(int score)
{
if (score > 1000 && < 1000000) // invalid term "<" in expression
return (score / 1000).ToString("0.00") + "K";
else if (score >= 1000000)
return (score / 1000000).ToString("0.00") + "M";
else
return score.ToString("0");
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question