KT-3576 Getters for float constants in objects always return 0.0 when constants are less than 1.0
#KT-3576 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
object TestObject {
|
||||
val testFloat: Float = 0.9999
|
||||
val otherFloat: Float = 1.01
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return if (TestObject.testFloat.equals(0.9999.toFloat())
|
||||
&& TestObject.otherFloat.equals(1.01.toFloat())) "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user