2012. 11. 27. 08:49ㆍC#/Console
Dout = cint((Dvalue + 11.25) / 22.5)
Select case Dout
case -1:
case 0:
case 16:retVal = "N"
case 1: retVal = "NNE"
case 2: retVal = "NE"
case 3: retVal = "ENE"
case 4: retVal = "E"
case 5: retVal = "ESE"
case 6: retVal = "SE"
case 7: retVal = "SSE"
case 8: retVal = "S"
case 9: retVal = "SSW"
case 10: retVal = "SW"
case 11: retVal = "WSW"
case 12: retVal = "W"
case 13: retVal = "WNW"
case 14: retVal = "NW"
case 15: retVal = "NNW"
end select
'C# > Console' 카테고리의 다른 글
[Console] 문자열 다루기 문자열 유틸리티 (0) | 2013.09.05 |
---|---|
[Console] C# INT To Hex and Hex To INT (0) | 2013.03.11 |
[C#] 이동평균 (0) | 2011.11.22 |
[Console] 숫자만 입력받기 (0) | 2011.09.21 |
[Console] DllImport (0) | 2011.09.14 |