# math.Truncate

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

```lua
number math.Truncate( number num, number digits = 0 )
```

## Açıklama

İstenmeyen ondalık basamakları kırpar.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **num**: Kırpılacak sayı
2. [number](https://gmod.tr/wiki/number) **digits** = 0: Noktadan sonra korunacak basamak sayısı.

## Dönen Değer

1. [number](https://gmod.tr/wiki/number): Sonuç.

### Örnek

Bu fonksiyonun kullanımını gösterir.

```lua
local num = 54.59874

print( math.Truncate( num, 2 ) ) -- 54.59
print( math.Round( num, 2 ) ) -- 54.6
```

**Çıktı:**

```lua
54.59
54.6
```

- [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/math.Truncate
