FloatExtensions.cs 207B
using System;
using System.Collections.Generic;
using System.IO;
static class FloatExtensions
{
public static float Percentage(this float current ,float maximum) => (current / maximum) * 100;
}
Universal CS Scripts - Scripts - Float Extensions
The maths for working out a percentage is quite simple just divide the current number by the maximum and multiply by 100.
public static float Percentage(this float current ,float maximum) => (current / maximum) * 100;
using System;
using System.Collections.Generic;
using System.IO;
static class FloatExtensions
{
public static float Percentage(this float current ,float maximum) => (current / maximum) * 100;
}