An Entity of Type: Inflection113803782, from Named Graph: http://dbpedia.org, within Data Space: dbpedia.org

In computer science, type conversion, type casting, type coercion, and type juggling are different ways of changing an expression from one data type to another. An example would be the conversion of an integer value into a floating point value or its textual representation as a string, and vice versa. Type conversions can take advantage of certain features of type hierarchies or data representations. Two important aspects of a type conversion are whether it happens implicitly (automatically) or explicitly, and whether the underlying data representation is converted from one representation into another, or a given representation is merely reinterpreted as the representation of another data type. In general, both primitive and compound data types can be converted.

Property Value
dbo:abstract
  • تحويل الأنواع في سي بلس بلس : (بالإنجليزية: type casting)‏ وهي عبارة عن مجموعة طرق للتحويل من نوع إلى نوع معين في لغة ++C , مثلها مثل أي لغة أخرى , وبما أن لغة ++C لغة مميزة عن غيرها فلها طرق تحويل خاصة بها ,ويجب عليك كمبرمج لغة ++C أن تعرف كيف تتعامل مع هذه التحويلات بدقة لكي لا تكون برامجك عرضة للأخطاء التي أحيانا قد لاتكتشفها أثناء كتابة برنامجك . (ar)
  • Přetypování je v informatice operace znamenající převedení jednoho datového typu na jiný. (cs)
  • Als Typumwandlung (englisch type conversion oder type casting, kurz cast) wird in der Informatik die Umwandlung eines Datums von einem Datentyp in einen anderen bezeichnet. Dadurch werden Typverletzungen vermieden, die durch mangelnde Zuweisungskompatibilität entstehen. Hierbei unterscheidet man zwischen 1. * expliziter und impliziter Typumwandlung; 2. * werterhaltender und verlustbehafteter Typumwandlung; 3. * benutzerdefinierter und vordefinierter (“built-in”) Typumwandlung. Bei der expliziten Typumwandlung wird die Typumwandlung im Programmcode ausdrücklich hingeschrieben. Je nach Typisierung der verwendeten Programmiersprache kann das Fehlen der expliziten Angabe der Typumwandlung einen Laufzeit- oder Compilezeit-Fehler zur Folge haben. Im Unterschied dazu erscheinen implizite Typumwandlungen nicht im Quelltext. Sie erfolgen entweder nach Vorschriften, die durch die Programmiersprache vorgegeben sind, oder gemäß einem vom Programmierer an einer anderen Stelle im Quelltext festgelegten Verfahren. Eine Typumwandlung ist werterhaltend, wenn alle im Ausgangstyp enthaltenen Werte auch im Zieltyp darstellbar sind, so dass sich der Wert, also das umgewandelte Datum, auf keinen Fall ändert. Anderenfalls nennt man sie Verlustbehaftet. Implizite Typumwandlungen können eine Fehlerquelle sein, indem versehentlich eine verlustbehaftete Umwandlung verursacht wird. Viele Programmiersprachen, wie z. B. Java, erlauben eine implizite Typumwandlung nur dann, wenn sie werterhaltend ist. (de)
  • En informatique la conversion de type, le transtypage ou la coercition (cast en anglais) est le fait de convertir une valeur d'un type (source) dans un autre (cible). On distingue trois formes de conversion (dont un seul mérite vraiment le nom de conversion) suivant la relation de sous-typage existant entre les types source et cible : * la conversion entre types incomparables ; * la coercition ascendante (transtypage vers le haut) ; * la coercition descendante (transtypage vers le bas). (fr)
  • En ciencias de la computación la conversión de tipos (type casting en inglés) se refiere a la transformación de un tipo de dato en otro. Esto se hace para tomar las ventajas que pueda ofrecer el tipo a que se va a convertir. Por ejemplo, los valores de un conjunto más limitado, como números enteros, se pueden almacenar en un formato más compacto y más tarde convertidos a un formato diferente que permita las operaciones que anteriormente no eran posibles, tales como la división con decimales. (es)
  • In computer science, type conversion, type casting, type coercion, and type juggling are different ways of changing an expression from one data type to another. An example would be the conversion of an integer value into a floating point value or its textual representation as a string, and vice versa. Type conversions can take advantage of certain features of type hierarchies or data representations. Two important aspects of a type conversion are whether it happens implicitly (automatically) or explicitly, and whether the underlying data representation is converted from one representation into another, or a given representation is merely reinterpreted as the representation of another data type. In general, both primitive and compound data types can be converted. Each programming language has its own rules on how types can be converted. Languages with strong typing typically do little implicit conversion and discourage the reinterpretation of representations, while languages with weak typing perform many implicit conversions between data types. Weak typing language often allow forcing the compiler to arbitrarily interpret a data item as having different representations—this can be a non-obvious programming error, or a technical method to directly deal with underlying hardware. In most languages, the word coercion is used to denote an implicit conversion, either during compilation or during run time. For example, in an expression mixing integer and floating point numbers (like 5 + 0.1), the compiler will automatically convert integer representation into floating point representation so fractions are not lost. Explicit type conversions are either indicated by writing additional code (e.g. adding type identifiers or calling built-in routines) or by coding conversion routines for the compiler to use when it otherwise would halt with a type mismatch. In most ALGOL-like languages, such as Pascal, Modula-2, Ada and Delphi, conversion and casting are distinctly different concepts. In these languages, conversion refers to either implicitly or explicitly changing a value from one data type storage format to another, e.g. a 16-bit integer to a 32-bit integer. The storage needs may change as a result of the conversion, including a possible loss of precision or truncation. The word cast, on the other hand, refers to explicitly changing the interpretation of the bit pattern representing a value from one type to another. For example, 32 contiguous bits may be treated as an array of 32 booleans, a 4-byte string, an unsigned 32-bit integer or an IEEE single precision floating point value. Because the stored bits are never changed, the programmer must know low level details such as representation format, byte order, and alignment needs, to meaningfully cast. In the C family of languages and ALGOL 68, the word cast typically refers to an explicit type conversion (as opposed to an implicit conversion), causing some ambiguity about whether this is a re-interpretation of a bit-pattern or a real data representation conversion. More important is the multitude of ways and rules that apply to what data type (or class) is located by a pointer and how a pointer may be adjusted by the compiler in cases like object (class) inheritance. (en)
  • In informatica, in particolare nella programmazione, la conversione di tipo (detta impropriamente casting, o typecasting, dal nome di uno dei modi in cui essa si manifesta) è l'operazione con cui si converte una variabile da un tipo di dato a un altro: questo passaggio è effettuato per avvantaggiarsi di alcune caratteristiche delle gerarchie dei tipi. Per esempio, i valori di un intervallo limitato (come quello degli interi) possono essere immagazzinati in piccole quantità di memoria, per poi essere convertiti in un formato diverso che potenzialmente permette nuove operazioni, come la divisione con varie cifre decimali di precisione. Nei linguaggi di programmazione orientati agli oggetti, la conversione di tipo permette ai programmi di trattare gli oggetti come se fossero di un tipo antenato, ad esempio per semplificare l'interazione con questi oggetti. (it)
  • 형 변환(type conversion, type casting, type coercion, type juggling)은 프로그래밍에서 자료형을 다른 형태로 변경하는 것이다. 필요에 따라서 변경되는 암시적 형변환과 프로그래머가 직접 변경하는 명시적 형변환으로 크게 두 가지로 나눌 수 있다. (ko)
  • 型変換(かたへんかん、英: type conversion)とはプログラムにおいて、あるデータ型を他のデータ型に変換することである。型キャスト(英: type casting)とも呼ばれる。 (ja)
  • In de informatica is een typeconversie (Eng.: type cast) een operatie die een stukje data van een bepaald gegevenstype converteert naar een ander gegevenstype. (nl)
  • Typkonvertering är ett sätt att transformera datatypen för att uttryck från en typ till en annan typ. Till exempel är en vanlig konvertering att göra ett heltalsvärde till ett flyttalsvärde. Man skiljer även på konvertering som gör implicit (av kompilatorn) eller explicit av programmeraren. (sv)
  • Konwersja typu, zmiana typu (zmiennej w odwołaniu, wyrażenia), rzutowanie typu, przekształcenie typu – konstrukcja programistyczna umożliwiająca traktowanie danej pewnego, konkretnego typu, jak daną innego typu, lub taką zmianę tej danej albo jej reprezentacji w pamięci operacyjnej, aby wartość tej danej, odpowiadała według przyjętych kryteriów odwzorowania, danej innego, wybranego typu. Pojęcie konwersji odnosi się także do sytuacji wyboru, rzutowania danych, które nie posiadają przypisanego typu, na wybrany, konkretny typ, celem tych danych. (pl)
  • Em ciência da computação, conversão de tipos ou coerção (do termo em inglês type convertion, typecasting e coercion) são diferentes formas de, implícita ou explicitamente, alterar uma entidade de um tipo de dados em outro. Isto é feito para tirar proveito de certos recursos de hierarquias de tipos ou representações de tipos. Um exemplo seriam inteiros pequenos, que podem ser armazenados em um formato compacto e convertidos e uma representação maior quando usados em cálculos aritméticos. Em programação orientada a objetos, a conversão de tipos permite que programas manipulem objetos de um tipo como um de seus tipos predecessores para simplificar a interação com eles. (pt)
  • Приведе́ние (преобразование) ти́па (англ. type conversion, typecasting, coercion) — в информатике преобразование значения одного типа в значение другого типа. (ru)
  • Приведення (перетворення) типів (англ. type conversion, typecasting, coercion) — в програмуванні це зміна типу сутності одного типу даних в інший, що може відбуватися різними способами, явно чи неявно. Це використовується з ціллю скористатися деякими особливостями ієрархій типів або подання типу. Одним із прикладів такої ситуації є використання невеликих цілих чисел, які зберігаються в більш компактному форматі змінної і приводяться в тип з більшим діапазоном значень для проведення арифметичних операцій. В об'єктно-орієнтованому програмуванні, дозволяє програмам приводити об'єкти різного типу до їх спільного батьківського типу, для спрощення операцій з ними. Кожна мова програмування має свої правила приведення типів даних. Загалом, перетворювати можна і об'єктні типи і основні типи даних. В більшості мов, слово coercionвикористовується позначення неявних перетворень типів, або під час компіляції або під . Типовим прикладом може бути вираз де в одному виразі присутні цілі числа і дробові числа з рухомою комою (такому як 5 + 0,1), в якому цілі числа як правило перетворюються в дробові. Явне перетворення типів може виконуватись або за допомогою вбудованих процедур (або спеціальних синтаксичних конструкцій) мови програмування або за допомогою окремо визначених процедур перетворення, таких як перевантажений конструктор об'єкту. В більшості мов сімейства ALGOL з можливістю визначати вкладені функції, таких як Ada, Паскаль, Object Pascal і , conversion (перетворення) і casting (приведення) це два окремі поняття. В цих мовах, перетворення відноситься до явного або неявного перенесення значення з одного типу даних в інший, наприклад 16-розрядне ціле число в 32-розрядне.Вимоги щодо зберігання змінної в новому форматі можуть змінитися в результаті перетворення. Може відбуватися втрата точності або відсікання молодших розрядів. Поняття приведення, в свою чергу, відноситься до явного змінення інтерпретації способу збереження в бітах при переведенні значення з одного типу в інший. Наприклад 32 послідовних біта можуть представлятися у вигляді масивуіз 32 елементів типу boolean, а рядок в 4 байти може представлятися як 32 бітне ціле або число з рухомою комою одинарної точності. Оскільки вимоги до зберігання значень не змінюються, таке перетворення все одно вимагає знань про низькорівневу організацію даних в конкретному форматі, порядок байтів, вирівнювання для того, щоб розуміти що відбувається. В родині мов програмування C і , поняття cast приведення зазвичай має зміст явного перетворення типів, незалежно від того, чи змінює це спосіб збереження біт або є реальним перетворенням. (uk)
  • 在计算机科学,特别是在程序设计语言中,类型转换(英語:type conversion)指将数据从一种类型转换到另一种类型的过程。一个简单的例子是将整数转换成浮点数。 (zh)
dbo:wikiPageExternalLink
dbo:wikiPageID
  • 555390 (xsd:integer)
dbo:wikiPageLength
  • 19927 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 1108496044 (xsd:integer)
dbo:wikiPageWikiLink
dbp:wikiPageUsesTemplate
dcterms:subject
gold:hypernym
rdf:type
rdfs:comment
  • تحويل الأنواع في سي بلس بلس : (بالإنجليزية: type casting)‏ وهي عبارة عن مجموعة طرق للتحويل من نوع إلى نوع معين في لغة ++C , مثلها مثل أي لغة أخرى , وبما أن لغة ++C لغة مميزة عن غيرها فلها طرق تحويل خاصة بها ,ويجب عليك كمبرمج لغة ++C أن تعرف كيف تتعامل مع هذه التحويلات بدقة لكي لا تكون برامجك عرضة للأخطاء التي أحيانا قد لاتكتشفها أثناء كتابة برنامجك . (ar)
  • Přetypování je v informatice operace znamenající převedení jednoho datového typu na jiný. (cs)
  • En informatique la conversion de type, le transtypage ou la coercition (cast en anglais) est le fait de convertir une valeur d'un type (source) dans un autre (cible). On distingue trois formes de conversion (dont un seul mérite vraiment le nom de conversion) suivant la relation de sous-typage existant entre les types source et cible : * la conversion entre types incomparables ; * la coercition ascendante (transtypage vers le haut) ; * la coercition descendante (transtypage vers le bas). (fr)
  • En ciencias de la computación la conversión de tipos (type casting en inglés) se refiere a la transformación de un tipo de dato en otro. Esto se hace para tomar las ventajas que pueda ofrecer el tipo a que se va a convertir. Por ejemplo, los valores de un conjunto más limitado, como números enteros, se pueden almacenar en un formato más compacto y más tarde convertidos a un formato diferente que permita las operaciones que anteriormente no eran posibles, tales como la división con decimales. (es)
  • 형 변환(type conversion, type casting, type coercion, type juggling)은 프로그래밍에서 자료형을 다른 형태로 변경하는 것이다. 필요에 따라서 변경되는 암시적 형변환과 프로그래머가 직접 변경하는 명시적 형변환으로 크게 두 가지로 나눌 수 있다. (ko)
  • 型変換(かたへんかん、英: type conversion)とはプログラムにおいて、あるデータ型を他のデータ型に変換することである。型キャスト(英: type casting)とも呼ばれる。 (ja)
  • In de informatica is een typeconversie (Eng.: type cast) een operatie die een stukje data van een bepaald gegevenstype converteert naar een ander gegevenstype. (nl)
  • Typkonvertering är ett sätt att transformera datatypen för att uttryck från en typ till en annan typ. Till exempel är en vanlig konvertering att göra ett heltalsvärde till ett flyttalsvärde. Man skiljer även på konvertering som gör implicit (av kompilatorn) eller explicit av programmeraren. (sv)
  • Konwersja typu, zmiana typu (zmiennej w odwołaniu, wyrażenia), rzutowanie typu, przekształcenie typu – konstrukcja programistyczna umożliwiająca traktowanie danej pewnego, konkretnego typu, jak daną innego typu, lub taką zmianę tej danej albo jej reprezentacji w pamięci operacyjnej, aby wartość tej danej, odpowiadała według przyjętych kryteriów odwzorowania, danej innego, wybranego typu. Pojęcie konwersji odnosi się także do sytuacji wyboru, rzutowania danych, które nie posiadają przypisanego typu, na wybrany, konkretny typ, celem tych danych. (pl)
  • Em ciência da computação, conversão de tipos ou coerção (do termo em inglês type convertion, typecasting e coercion) são diferentes formas de, implícita ou explicitamente, alterar uma entidade de um tipo de dados em outro. Isto é feito para tirar proveito de certos recursos de hierarquias de tipos ou representações de tipos. Um exemplo seriam inteiros pequenos, que podem ser armazenados em um formato compacto e convertidos e uma representação maior quando usados em cálculos aritméticos. Em programação orientada a objetos, a conversão de tipos permite que programas manipulem objetos de um tipo como um de seus tipos predecessores para simplificar a interação com eles. (pt)
  • Приведе́ние (преобразование) ти́па (англ. type conversion, typecasting, coercion) — в информатике преобразование значения одного типа в значение другого типа. (ru)
  • 在计算机科学,特别是在程序设计语言中,类型转换(英語:type conversion)指将数据从一种类型转换到另一种类型的过程。一个简单的例子是将整数转换成浮点数。 (zh)
  • Als Typumwandlung (englisch type conversion oder type casting, kurz cast) wird in der Informatik die Umwandlung eines Datums von einem Datentyp in einen anderen bezeichnet. Dadurch werden Typverletzungen vermieden, die durch mangelnde Zuweisungskompatibilität entstehen. Hierbei unterscheidet man zwischen 1. * expliziter und impliziter Typumwandlung; 2. * werterhaltender und verlustbehafteter Typumwandlung; 3. * benutzerdefinierter und vordefinierter (“built-in”) Typumwandlung. (de)
  • In computer science, type conversion, type casting, type coercion, and type juggling are different ways of changing an expression from one data type to another. An example would be the conversion of an integer value into a floating point value or its textual representation as a string, and vice versa. Type conversions can take advantage of certain features of type hierarchies or data representations. Two important aspects of a type conversion are whether it happens implicitly (automatically) or explicitly, and whether the underlying data representation is converted from one representation into another, or a given representation is merely reinterpreted as the representation of another data type. In general, both primitive and compound data types can be converted. (en)
  • In informatica, in particolare nella programmazione, la conversione di tipo (detta impropriamente casting, o typecasting, dal nome di uno dei modi in cui essa si manifesta) è l'operazione con cui si converte una variabile da un tipo di dato a un altro: questo passaggio è effettuato per avvantaggiarsi di alcune caratteristiche delle gerarchie dei tipi. Per esempio, i valori di un intervallo limitato (come quello degli interi) possono essere immagazzinati in piccole quantità di memoria, per poi essere convertiti in un formato diverso che potenzialmente permette nuove operazioni, come la divisione con varie cifre decimali di precisione. (it)
  • Приведення (перетворення) типів (англ. type conversion, typecasting, coercion) — в програмуванні це зміна типу сутності одного типу даних в інший, що може відбуватися різними способами, явно чи неявно. В родині мов програмування C і , поняття cast приведення зазвичай має зміст явного перетворення типів, незалежно від того, чи змінює це спосіб збереження біт або є реальним перетворенням. (uk)
rdfs:label
  • التحويل في c++ (ar)
  • Přetypování (cs)
  • Typumwandlung (de)
  • Conversión de tipos (es)
  • Conversione di tipo (it)
  • Conversion de type (fr)
  • 형 변환 (ko)
  • 型変換 (ja)
  • Konwersja typu (pl)
  • Typeconversie (nl)
  • Conversão de tipos (pt)
  • Type conversion (en)
  • Приведение типа (ru)
  • Typkonvertering (sv)
  • 类型转换 (zh)
  • Приведення типів (uk)
owl:sameAs
prov:wasDerivedFrom
foaf:isPrimaryTopicOf
is dbo:wikiPageDisambiguates of
is dbo:wikiPageRedirects of
is dbo:wikiPageWikiLink of
is foaf:primaryTopic of
Powered by OpenLink Virtuoso    This material is Open Knowledge     W3C Semantic Web Technology     This material is Open Knowledge    Valid XHTML + RDFa
This content was extracted from Wikipedia and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License