Show inches as mixed fraction in ArchUnits
This commit is contained in:
@@ -60,13 +60,11 @@ namespace SawCut
|
||||
public static string FormatFromInches(double totalInches)
|
||||
{
|
||||
var feet = Math.Floor(totalInches / 12.0);
|
||||
var inches = totalInches - (feet * 12.0);
|
||||
|
||||
inches = Math.Round(inches, 8);
|
||||
var inches = Helper.ConvertToMixedFraction(totalInches - (feet * 12.0));
|
||||
|
||||
if (feet > 0)
|
||||
{
|
||||
return $"{feet}'-{inches}\"";
|
||||
return $"{feet}' {inches}\"";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user