소수점 두번째 자리에서 짜르고싶어요

소수점 0.1005011 이런식으로 값이 존재하면 이값을 어떤 함수를 써야 소수점에서 자를수가 있을가요??

Math.Ceiling: 올림
Math.Round: 반올림
Math.Truncate: 버림
입니다.
둘째자리 버림이면
Math.Truncate(value * 100) / 100 로 해보세요.

감사합니다!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.