from

fun from(value: Int?, maxScore: Int): Score?(source)

value ∈ [0, maxScore]


fun from(value: Double?, maxScore: Int): Score?(source)

value ∈ [0.0, maxScore]


fun from(value: Float?, maxScore: Int): Score?(source)

value ∈ [0.0f, maxScore]


fun from(value: String?, maxScore: Int): Score?(source)

value ∈ ["0.0", maxScore]