doubleArrayOf
Returns an array containing the specified Double numbers.
Since Kotlin
1.0Samples
import kotlin.test.*
fun main() {
//sampleStart
val emptyDoubleArray = doubleArrayOf()
println(emptyDoubleArray.contentToString()) // []
val doubleArray = doubleArrayOf(1.0, 2.5, 3.14)
println(doubleArray.contentToString()) // [1.0, 2.5, 3.14]
//sampleEnd
}Returns an array containing the specified Double numbers.
Since Kotlin
1.1Samples
import kotlin.test.*
fun main() {
//sampleStart
val emptyDoubleArray = doubleArrayOf()
println(emptyDoubleArray.contentToString()) // []
val doubleArray = doubleArrayOf(1.0, 2.5, 3.14)
println(doubleArray.contentToString()) // [1.0, 2.5, 3.14]
//sampleEnd
}Returns an array containing the specified Double numbers.
Since Kotlin
1.0Samples
import kotlin.test.*
fun main() {
//sampleStart
val emptyDoubleArray = doubleArrayOf()
println(emptyDoubleArray.contentToString()) // []
val doubleArray = doubleArrayOf(1.0, 2.5, 3.14)
println(doubleArray.contentToString()) // [1.0, 2.5, 3.14]
//sampleEnd
}Returns an array containing the specified Double numbers.
Since Kotlin
1.3Samples
import kotlin.test.*
fun main() {
//sampleStart
val emptyDoubleArray = doubleArrayOf()
println(emptyDoubleArray.contentToString()) // []
val doubleArray = doubleArrayOf(1.0, 2.5, 3.14)
println(doubleArray.contentToString()) // [1.0, 2.5, 3.14]
//sampleEnd
}Returns an array containing the specified Double numbers.
Since Kotlin
1.8Samples
import kotlin.test.*
fun main() {
//sampleStart
val emptyDoubleArray = doubleArrayOf()
println(emptyDoubleArray.contentToString()) // []
val doubleArray = doubleArrayOf(1.0, 2.5, 3.14)
println(doubleArray.contentToString()) // [1.0, 2.5, 3.14]
//sampleEnd
}Returns an array containing the specified Double numbers.
Since Kotlin
1.8Samples
import kotlin.test.*
fun main() {
//sampleStart
val emptyDoubleArray = doubleArrayOf()
println(emptyDoubleArray.contentToString()) // []
val doubleArray = doubleArrayOf(1.0, 2.5, 3.14)
println(doubleArray.contentToString()) // [1.0, 2.5, 3.14]
//sampleEnd
}