Afficher : Delphi C++
Préférences d'affichage

System.SysUtils.IntToStr

De XE2 API Documentation

Delphi

function IntToStr(Value: Integer): string;
function IntToStr(Value: Int64): string;

C++

extern PACKAGE System::UnicodeString __fastcall IntToStr(int Value)/* overload */;

Sommaire

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils


Description

Convertit un entier en chaîne.

IntToStr convertit un entier en une chaîne qui contient la représentation décimale de ce nombre.

Pour convertir un entier non signé en chaîne, utilisez la fonction UIntToStr.

Pour convertir un entier en une chaîne de longueur minimale, utilisez la fonction Str. Exemple (Delphi) :

 Str(123:6, AString); // AString is set to '   123'

Voir aussi

Exemples de code

Versions précédentes
Traductions