C# 클래스 System.SingleExtensions

파일 보기 프로젝트 열기: SteamTools-Team/SteamTools

공개 메소드들

메소드 설명
CeilingToInt ( float f ) : int

(进一法)返回大于或等于指定数字的最小整数值

FloorToInt ( float f ) : int

(向下取整)返回小于或等于指定数字的最大整数值

Round2ToInt ( float f ) : int

(四舍五入)将值舍入到最接近的整数或指定的小数位数

RoundToInt ( float f ) : int

(五舍六入)将值舍入到最接近的整数或指定的小数位数

RoundToInt ( float f, MidpointRounding mode ) : int

将值舍入到最接近的整数或指定的小数位数

메소드 상세

CeilingToInt() 공개 정적인 메소드

(进一法)返回大于或等于指定数字的最小整数值
public static CeilingToInt ( float f ) : int
f float
리턴 int

FloorToInt() 공개 정적인 메소드

(向下取整)返回小于或等于指定数字的最大整数值
public static FloorToInt ( float f ) : int
f float
리턴 int

Round2ToInt() 공개 정적인 메소드

(四舍五入)将值舍入到最接近的整数或指定的小数位数
public static Round2ToInt ( float f ) : int
f float
리턴 int

RoundToInt() 공개 정적인 메소드

(五舍六入)将值舍入到最接近的整数或指定的小数位数
public static RoundToInt ( float f ) : int
f float
리턴 int

RoundToInt() 공개 정적인 메소드

将值舍入到最接近的整数或指定的小数位数
public static RoundToInt ( float f, MidpointRounding mode ) : int
f float
mode MidpointRounding 在两个数字之间时如何舍入的规范
리턴 int