RoR2-ChensHelpers

Contains simple and useful helpers for RoR2 mod creators to use. Mainly caters to Chen's mods.

View on GitHub

ChensHelpers

Chen.Helpers.MathHelpers.Percent

Percent.ToPercent(float, uint) Method

Converts the number into a string with control of the precision.

public static string ToPercent(this float number, uint precision);

Parameters

number System.Single
Number to modify

precision System.UInt32
Precision to be followed

Returns

System.String
Formatted string of the number