cutoff after first decimal

This commit is contained in:
glax 2023-05-20 02:23:37 +02:00
parent 658b93bc51
commit c2872bf177

View File

@ -25,7 +25,7 @@ public struct Chapter
{
NumberDecimalSeparator = "."
};
decimal orderNumber = Math.Floor(Convert.ToDecimal(volumeNumber) * Convert.ToDecimal(chapterNumber, nfi));
this.fileName = $"{chapterName} - V{volumeNumber}C{chapterNumber} - {orderNumber.ToString(nfi)}";
decimal orderNumber = Convert.ToDecimal(volumeNumber) * Convert.ToDecimal(chapterNumber, nfi);
this.fileName = $"{chapterName} - V{volumeNumber}C{chapterNumber} - {decimal.Round(orderNumber, 1).ToString(nfi)}";
}
}