mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-06-28 11:46:07 +02:00
14 lines
325 B
Kotlin
14 lines
325 B
Kotlin
package eu.kanade.presentation.util
|
|
|
|
import java.text.DecimalFormat
|
|
import java.text.DecimalFormatSymbols
|
|
|
|
private val formatter = DecimalFormat(
|
|
"#.###",
|
|
DecimalFormatSymbols().apply { decimalSeparator = '.' },
|
|
)
|
|
|
|
fun formatChapterNumber(chapterNumber: Double): String {
|
|
return formatter.format(chapterNumber)
|
|
}
|