diff --git a/Tranga/Chapter.cs b/Tranga/Chapter.cs index 72f2ace..8d734c2 100644 --- a/Tranga/Chapter.cs +++ b/Tranga/Chapter.cs @@ -21,6 +21,11 @@ public struct Chapter this.chapterNumber = chapterNumber; this.url = url; string chapterName = string.Concat((name ?? "").Split(Path.GetInvalidFileNameChars())); - this.fileName = $"{chapterName} - V{volumeNumber}C{chapterNumber} - {volumeNumber}{chapterNumber}"; + NumberFormatInfo nfi = new NumberFormatInfo() + { + NumberDecimalSeparator = "." + }; + decimal orderNumber = Math.Floor(Convert.ToDecimal(volumeNumber) * Convert.ToDecimal(chapterNumber, nfi)); + this.fileName = $"{chapterName} - V{volumeNumber}C{chapterNumber} - {orderNumber.ToString(nfi)}"; } } \ No newline at end of file