diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Entity.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Entity.kt index b7fbf1a..60ece5e 100644 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Entity.kt +++ b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Entity.kt @@ -18,7 +18,7 @@ import javax.persistence.ManyToOne import javax.persistence.OneToMany import javax.persistence.OneToOne import javax.persistence.Table -import kotlin.math.round +import kotlin.math.roundToInt /** * Defines a location at which observations occur. @@ -120,7 +120,7 @@ data class Observation( private fun roundScore(input: Double?): String { if (input != null) { - return round(input).toString() + return input.roundToInt().toString() } return "" }