commonMain.krono.utils.Century.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of krono-api-jvm Show documentation
Show all versions of krono-api-jvm Show documentation
An multiplatform interoperable datetime library
@file:JsExport
package krono.utils
import kotlinx.JsExport
import kotlin.js.JsName
import kotlin.math.floor
@JsName("centuryOf")
fun Century(year: Int): Int = floor(year.toDouble() / 100).toInt()