Fixed score rounding for CSV output

This commit is contained in:
neviyn 2019-08-29 16:38:51 +01:00
parent a3dab505ef
commit 1c06fe00b9

View File

@ -18,7 +18,7 @@ import javax.persistence.ManyToOne
import javax.persistence.OneToMany import javax.persistence.OneToMany
import javax.persistence.OneToOne import javax.persistence.OneToOne
import javax.persistence.Table import javax.persistence.Table
import kotlin.math.round import kotlin.math.roundToInt
/** /**
* Defines a location at which observations occur. * Defines a location at which observations occur.
@ -120,7 +120,7 @@ data class Observation(
private fun roundScore(input: Double?): String { private fun roundScore(input: Double?): String {
if (input != null) { if (input != null) {
return round(input).toString() return input.roundToInt().toString()
} }
return "" return ""
} }