# Tür Dönüşümü

Dart üzerinde veri tiplerini birbirine dönüştürebiliriz.

### Örnek:

```dart
int sayi = 15;
String yazi = sayi.toString();
double sayi1 = 15.23;
int sayi2 = sayi1.toInt();
```

{% hint style="info" %}
`toString()` : String'e dönüştürme\
`toInt()` : Integer'a dönüştürme\
`toDouble()` : Double'a dönüştürme
{% endhint %}

Bir değişkenin veya sabitin veri tipini öğrenmek için `runtimeType` fonksiyonunu kullanabiliriz.

```dart
main() {
  int i = 5;

  print(i.runtimeType); //int
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dart.kaanksc.com/boeluem-1/tuer-doenuesuemue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
