Fixed score rounding for CSV output
This commit is contained in:
parent
a3dab505ef
commit
1c06fe00b9
@ -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 ""
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user