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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user