minusOrNull

fun Long.minusOrNull(other: Long): Long?

this - other, or null when the exact difference does not fit in a Long. See plusOrNull.