الفرق بين المراجعتين ل"Ruby/Numeric/imaginary"
اذهب إلى التنقل
اذهب إلى البحث
جميل-بيلوني (نقاش | مساهمات) ط (مراجعة وتدقيق.) |
|||
سطر 1: | سطر 1: | ||
− | <noinclude>{{DISPLAYTITLE: التابع <code>imaginary | + | <noinclude>{{DISPLAYTITLE: التابع <code>Numeric.imaginary</code> في روبي}}</noinclude> |
[[تصنيف: Ruby]] | [[تصنيف: Ruby]] | ||
[[تصنيف: Ruby Method]] | [[تصنيف: Ruby Method]] | ||
سطر 6: | سطر 6: | ||
==البنية العامة== | ==البنية العامة== | ||
<syntaxhighlight lang="ruby">imaginary → 0</syntaxhighlight> | <syntaxhighlight lang="ruby">imaginary → 0</syntaxhighlight> | ||
− | ==القيمة | + | ==القيمة المعادة== |
− | + | تعاد القيمة 0. | |
==انظر أيضا== | ==انظر أيضا== | ||
− | * التابع <code>[[Ruby/Numeric/imag|imag]]</code>: يعيد | + | * التابع <code>[[Ruby/Numeric/imag|imag]]</code>: يعيد الصفر. |
* التابع <code>[[Ruby/Numeric/infinite-3F|infinite?]]</code>: يعيد القيمة <code>nil</code> أو <code>-1</code> أو <code>1</code> اعتمادًا على ما إن كانت القيمة منتهية (finite) أو <code>-Infinity</code> أو <code>+Infinity</code>. | * التابع <code>[[Ruby/Numeric/infinite-3F|infinite?]]</code>: يعيد القيمة <code>nil</code> أو <code>-1</code> أو <code>1</code> اعتمادًا على ما إن كانت القيمة منتهية (finite) أو <code>-Infinity</code> أو <code>+Infinity</code>. | ||
==مصادر== | ==مصادر== | ||
− | *[http://ruby-doc.org/core-2.5.1/Numeric.html#method-i-imaginary قسم | + | *[http://ruby-doc.org/core-2.5.1/Numeric.html#method-i-imaginary قسم التابع imaginary في الصنف Numeric في توثيق روبي الرسمي.] |
المراجعة الحالية بتاريخ 19:00، 20 نوفمبر 2018
يعيد التابع imaginary
الصفر.
البنية العامة
imaginary → 0
القيمة المعادة
تعاد القيمة 0.
انظر أيضا
- التابع
imag
: يعيد الصفر. - التابع
infinite?
: يعيد القيمةnil
أو -1
أو1
اعتمادًا على ما إن كانت القيمة منتهية (finite) أو -Infinity
أو +Infinity
.