{"json_modified": "2016-03-28T08:35:56.972135", "uuid": "eefc891d-228a-46df-af56-4e38ca6ab1ca", "title": "Type Conversion", "url": "/en-US/docs/Glossary/Type_Conversion", "tags": ["Type conversion", "CodingScripting", "Type casting", "Glossary"], "translations": [{"uuid": "531e3fb0-80d5-4a71-b62a-2557651d3de0", "title": "Conversion de type", "url": "/fr/docs/Glossaire/Conversion_de_type", "tags": ["CodingScripting", "Transtypage", "Conversion de type", "Glossaire"], "summary": "La conversion de type (ou transtypage) est le transfert d'une donn\u00e9e d'un type de donn\u00e9e vers un autre. Une conversion implicite se produit quand le compilateur affecte les types de donn\u00e9e automatiquement, mais le code source peut aussi demander \u00e0 ce qu'une conversion ait lieu de mani\u00e8re explicite.\u00a0 Exemples simples : \u00e9tant donn\u00e9e l'instruction 5+2.0
, l'entier 5
est converti implicitement en nombre \u00e0 virgule flotttante, mais avec l'instruction Number(\"0x11\")
, la cha\u00eene \"0x11\" est explicitement convertie en valeur num\u00e9rique 17.", "localization_tags": [], "locale": "fr", "last_edit": "2015-12-09T14:46:21", "review_tags": []}], "modified": "2015-08-03T13:18:58", "label": "Type Conversion", "localization_tags": [], "locale": "en-US", "id": 113997, "last_edit": "2015-08-03T13:18:57", "summary": "Type conversion (or typecasting) means transfer of data from one data type to another. Implicit conversion happens when the compiler automatically assigns data types, but the source code can also explicitly require a conversion to take place.\u00a0 Simple examples: given the instruction 5+2.0
, the integer 5
is implicitly typecasted into floating point, but given the instruction Number(\"0x11\")
, the string \"0x11\" is explicitly typecasted as the number 17.", "sections": [{"id": "Learn_more", "title": null}, {"id": "General_knowledge", "title": "General knowledge"}], "slug": "Glossary/Type_Conversion", "review_tags": []}