الفرق بين المراجعتين ل"Kotlin/Double/POSITIVE INFINITY"
اذهب إلى التنقل
اذهب إلى البحث
جميل-بيلوني (نقاش | مساهمات) (مراجعة وتدقيق.) |
|||
سطر 1: | سطر 1: | ||
− | <noinclude>{{DISPLAYTITLE: | + | <noinclude>{{DISPLAYTITLE:الثابت <code>Double.POSITIVE_INFINITY</code> في Kotlin}}</noinclude> |
− | <code>POSITIVE_INFINITY</code> | + | يمثل الثابت <code>Double.POSITIVE_INFINITY</code> قيمة موجبة لانهائية (infinity) [[Kotlin/Double|لعدد عشري مضاعف]] (double). |
==البنية العامة== | ==البنية العامة== | ||
<syntaxhighlight lang="kotlin"> | <syntaxhighlight lang="kotlin"> | ||
سطر 6: | سطر 6: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
==أمثلة== | ==أمثلة== | ||
− | + | استخدام الثابت <code>Double.POSITIVE_INFINITY</code> لطباعة قيمة موجبة لانهائية لعدد عشري مضاعف:<nowiki/><syntaxhighlight lang="kotlin"> | |
− | <nowiki/><syntaxhighlight lang="kotlin"> | ||
fun main(args: Array<String>) { | fun main(args: Array<String>) { | ||
println(Double.POSITIVE_INFINITY )// Infinity | println(Double.POSITIVE_INFINITY )// Infinity | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | == | + | ==انظر أيضًا == |
*<code>[[Kotlin/Double/NEGATIVE INFINITY|NEGATIVE_INFINITY]]</code> : هي ثابتة تحتوي قيمة اللانهاية السالبة للنوع <code>[[Kotlin/Double/index|Double]]</code>. | *<code>[[Kotlin/Double/NEGATIVE INFINITY|NEGATIVE_INFINITY]]</code> : هي ثابتة تحتوي قيمة اللانهاية السالبة للنوع <code>[[Kotlin/Double/index|Double]]</code>. | ||
==مصادر== | ==مصادر== | ||
− | * [https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/-p-o-s-i-t-i-v-e_-i-n-f-i-n-i-t-y.html | + | * [https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/-p-o-s-i-t-i-v-e_-i-n-f-i-n-i-t-y.html صفحة الثابت Double.POSITIVE_INFINITY في التوثيق الرسميّ للمكتبة القياسيّة في لغة Kotlin.] |
[[تصنيف:Kotlin]] | [[تصنيف:Kotlin]] | ||
[[تصنيف:Kotlin constant]] | [[تصنيف:Kotlin constant]] |
مراجعة 07:25، 15 أغسطس 2018
يمثل الثابت Double.POSITIVE_INFINITY
قيمة موجبة لانهائية (infinity) لعدد عشري مضاعف (double).
البنية العامة
val POSITIVE_INFINITY: Double
أمثلة
استخدام الثابت Double.POSITIVE_INFINITY
لطباعة قيمة موجبة لانهائية لعدد عشري مضاعف:
fun main(args: Array<String>) {
println(Double.POSITIVE_INFINITY )// Infinity
}
انظر أيضًا
NEGATIVE_INFINITY
: هي ثابتة تحتوي قيمة اللانهاية السالبة للنوعDouble
.