Jump to content

Test integerness: Difference between revisions

m
→‎{{header|Kotlin}}: Corrected alignment
(Added Kotlin)
m (→‎{{header|Kotlin}}: Corrected alignment)
Line 804:
class Complex(val real: Double, val imag: Double) {
fun isLong() = real.isLong() && imag == 0.0
 
override fun toString() =
if (imag >= 0.0)
"$real + ${imag}i"
9,490

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.