Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
System
SingleExtensions
RoundToInt
System.SingleExtensions.RoundToInt C# (CSharp) Méthode
SingleExtensions Class Documentation
Afficher le fichier
Open project: SteamTools-Team/SteamTools
RoundToInt()
public
static
méthode
(五舍六入)将值舍入到最接近的整数或指定的小数位数
public
static
RoundToInt
(
float
f
) :
int
f
float
Résultat
int
public static int RoundToInt(this float f) => (int)MathF.Round(f);
Same methods
SingleExtensions::
RoundToInt
(
float
f
,
MidpointRounding
mode
) :
int
SingleExtensions
CeilingToInt
FloorToInt
Round2ToInt
RoundToInt