runtime: Correct Float.MIN_VALUE

This commit is contained in:
Ilya Matveev
2017-05-03 13:50:44 +07:00
committed by ilmat192
parent 4179b5ddd6
commit 74bd3256f0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -389,7 +389,7 @@ task tostring2(type: RunKonanTest) {
task tostring3(type: RunKonanTest) {
goldValue = "-128\n127\n-32768\n32767\n" +
"-2147483648\n2147483647\n-9223372036854775808\n9223372036854775807\n" +
"1.17549E-38\n3.40282E+38\n-INF\nINF\n" +
"1.4013E-45\n3.40282E+38\n-INF\nINF\n" +
// Linux version prints -NAN.
// "NAN\n" +
"4.94066E-324\n1.79769E+308\n-INF\nINF\n"
+2 -2
View File
@@ -951,12 +951,12 @@ public final class Float : Number(), Comparable<Float> {
/**
* A constant holding the smallest *positive* nonzero value of Float.
*/
public const val MIN_VALUE: Float = 1.17549435E-38f
public const val MIN_VALUE: Float = 1.40129846432481707e-45f
/**
* A constant holding the largest positive finite value of Float.
*/
public const val MAX_VALUE: Float = 3.4028235E+38f
public const val MAX_VALUE: Float = 3.40282346638528860e+38f
/**
* A constant holding the positive infinity value of Float.