using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MyMeths
{
[System.Runtime.InteropServices.ComVisible(true)]
public class WeightConversion
public double kgsToStonesAndLbs(double kgs)
double onlyLbs = kgs * 2.2;
return onlyLbs;
}
public string kgsToStonesAndLbs(double kgs, bool lbs)
double kg2st = 0.157473044;
string stonesAndLbs = Convert.ToString(Math.Truncate(kgs * kg2st)) + " st." + Math.Round((kgs * kg2st - Math.Truncate(kgs * kg2st)) * 14) + " lbs.";
return stonesAndLbs;