tuple_is_real_elemtuple_is_real_elemTupleIsRealElemTupleIsRealElemtuple_is_real_elem (Operator)
Name
tuple_is_real_elemtuple_is_real_elemTupleIsRealElemTupleIsRealElemtuple_is_real_elem — Testen, ob die Elemente eines Tupels vom Typ real (Gleitkommazahl)
sind.
Signatur
tuple_is_real_elem( : : T : IsReal)
Herror tuple_is_real_elem(double T, Hlong* IsReal)
Herror T_tuple_is_real_elem(const Htuple T, Htuple* IsReal)
def tuple_is_real_elem(t: HTupleType) -> Sequence[int]
def tuple_is_real_elem_s(t: HTupleType) -> int
Beschreibung
tuple_is_real_elemtuple_is_real_elemTupleIsRealElemTupleIsRealElemTupleIsRealElemtuple_is_real_elem testet die Elemente des Eingabetupels TTTTtt.
Für alle Elemente vom Typ real (Gleitkommazahl) wird 1 (true)
zurückgegeben, ansonsten wird 0 (false) zurückgegeben.
Sonderfall: Leeres Eingabetupel
Falls das Eingabetupel leer ist, gibt der Operator ein leeres Tupel zurück.
HDevelop Inline-Operation
HDevelop unterstützt eine Inline-Operation für tuple_is_real_elemtuple_is_real_elemTupleIsRealElemTupleIsRealElemTupleIsRealElemtuple_is_real_elem,
die innerhalb eines Ausdrucks in der folgenden Syntax verwendet werden
kann:
IsReal := is_real_elem(T)
Achtung
tuple_is_real_elemtuple_is_real_elemTupleIsRealElemTupleIsRealElemTupleIsRealElemtuple_is_real_elem gibt true zurück, falls der interne Datentyp
der Elemente des Tupels real ist. Im Gegensatz zu
tuple_is_numbertuple_is_numberTupleIsNumberTupleIsNumberTupleIsNumbertuple_is_number wird nicht zurückgegeben, ob die Elemente eines Tupel
als real dargestellt werden könnten.
Ausführungsinformationen
- Multithreading-Typ: independent (läuft parallel auch zu exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Parameter
TTTTtt (input_control) tuple(-array) → HTupleHTupleTypeHTupleHtuple (real / integer / string / handle) (double / int / long / string / HHandle) (double / Hlong / HString / HHandle) (double / Hlong / char* / handle)
Eingabetupel.
IsRealIsRealIsRealIsRealisRealis_real (output_control) number(-array) → HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Sind die Elemente des Eingabetupels vom Typ real
(Gleitkommazahl)?
Beispiel (HDevelop)
tuple_is_real_elem ([3.1416,'pi',3,3.0], IsReal)
* IsReal = [true, false, false, true]
Ergebnis
Sind die Parameterwerte korrekt, dann liefert tuple_is_real_elemtuple_is_real_elemTupleIsRealElemTupleIsRealElemTupleIsRealElemtuple_is_real_elem
den Wert TRUE.
Alternativen
tuple_typetuple_typeTupleTypeTupleTypeTupleTypetuple_type,
tuple_type_elemtuple_type_elemTupleTypeElemTupleTypeElemTupleTypeElemtuple_type_elem,
tuple_is_realtuple_is_realTupleIsRealTupleIsRealTupleIsRealtuple_is_real
Siehe auch
tuple_is_mixedtuple_is_mixedTupleIsMixedTupleIsMixedTupleIsMixedtuple_is_mixed,
tuple_is_inttuple_is_intTupleIsIntTupleIsIntTupleIsInttuple_is_int,
tuple_is_realtuple_is_realTupleIsRealTupleIsRealTupleIsRealtuple_is_real,
tuple_is_stringtuple_is_stringTupleIsStringTupleIsStringTupleIsStringtuple_is_string,
tuple_is_mixedtuple_is_mixedTupleIsMixedTupleIsMixedTupleIsMixedtuple_is_mixed,
tuple_is_int_elemtuple_is_int_elemTupleIsIntElemTupleIsIntElemTupleIsIntElemtuple_is_int_elem,
tuple_is_string_elemtuple_is_string_elemTupleIsStringElemTupleIsStringElemTupleIsStringElemtuple_is_string_elem,
tuple_is_numbertuple_is_numberTupleIsNumberTupleIsNumberTupleIsNumbertuple_is_number,
tuple_is_handle_elemtuple_is_handle_elemTupleIsHandleElemTupleIsHandleElemTupleIsHandleElemtuple_is_handle_elem,
tuple_is_handletuple_is_handleTupleIsHandleTupleIsHandleTupleIsHandletuple_is_handle
Modul
Foundation