---
title: "floatround | open.mp"
description: "Round a floating point number to an integer value."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/floatround
language: th
---

# floatround

## คำอธิบาย

Round a floating point number to an integer value.

| Name | Description |
| --- | --- |
| value | The value to round. |
| method | The floatround method to use. |

## ส่งคืน

The rounded value as an integer.

## ตัวอย่าง

```c
floatround(3.3, floatround_ceil);
```

## ฟังก์ชั่นที่เกี่ยวข้องกัน

-   [float](https://omp.itsneufox.com/th/docs/scripting/functions/float): Convert an integer to a float.
-   [floatstr](https://omp.itsneufox.com/th/docs/scripting/functions/floatstr): Convert an string to a float.
