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.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 ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user