C#

[C#]양수, 음수 문자열 표현 예제

선영아 사랑해 2016. 3. 9. 13:05

숫자를 양수 또는 음수로 표현 사용 예제


string data = string.Format("{0:+0;-0}", 10);

결과 값 : +10