# tostring

- **Ortam:** İstemci, Sunucu, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/Global.tostring
- **Çeviri tarihi:** 2025-09-08

```lua
string tostring( any value )
```

## Açıklama

Verilen değeri bir string'e (metne) dönüştürmeye çalışır. Eğer değer bir nesne ise ve metatablosu __tostring meta metodunu tanımlamışsa, bu fonksiyonu çağırır.

[print](https://gmod.tr/wiki/Global.print) de bu işlevselliği kullanır.

## Argümanlar

1. [any](https://gmod.tr/wiki/any) **value**: String'e dönüştürülecek nesne.

## Döndürdükleri

1. [string](https://gmod.tr/wiki/string): Değerin string temsili.

### Örnek

Bir sayıyı string'e dönüştürün.

```lua
print(tostring(0x16))
```

**Çıktı:** 22

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/Global.tostring
