LibreTube/app/src/main/java/com/github/libretube/util/TextUtils.kt

13 lines
258 B
Kotlin
Raw Normal View History

2022-11-06 21:05:36 +05:30
package com.github.libretube.util
object TextUtils {
/**
* Separator used for descriptions
*/
const val SEPARATOR = ""
2022-11-09 22:31:59 +05:30
fun toTwoDecimalsString(num: Int): String {
return if (num >= 10) num.toString() else "0$num"
}
2022-11-06 21:05:36 +05:30
}