toSliceIndex

fun toSliceIndex(value: Double, length: Long): Long