JS: Provide MIN_VALUE and MAX_VALUE member constants for Double and Float companion objects.

JVM: Make MIN_VALUE and MAX_VALUE not an extension but member constant properties of Double and Float companion objects.
This commit is contained in:
Ilya Gorbunov
2015-05-22 19:54:04 +03:00
parent bd934bc3c4
commit 1cf4a407d1
6 changed files with 58 additions and 44 deletions
@@ -20,6 +20,16 @@ package kotlin
* An interface implemented by companion objects of floating-point types.
*/
public interface FloatingPointConstants<T> {
/**
* A constant holding the smallest *positive* nonzero value.
*/
public val MIN_VALUE: T
/**
* A constant holding the largest positive finite value.
*/
public val MAX_VALUE: T
/**
* A constant holding the positive infinity value.
*/