# fld

fld(x, y)

Largest integer less than or equal to `x/y`

.

## Examples

```
julia> fld(10, 3)
3
julia> fld(7, 2)
3
julia> fld(-10, 3)
-4
```

The `fld`

function returns the largest integer that is less than or equal to the division of `x`

by `y`

.

In the first example, `fld(10, 3)`

returns `3`

because `10/3`

is `3.333...`

, and the largest integer less than or equal to `3.333...`

is `3`

.

Similarly, `fld(7, 2)`

returns `3`

because `7/2`

is `3.5`

, and the largest integer less than or equal to `3.5`

is `3`

.

In the case of negative numbers, `fld(-10, 3)`

returns `-4`

because `-10/3`

is `-3.333...`

, and the largest integer less than or equal to `-3.333...`

is `-4`

.

## See Also

## User Contributed Notes

### Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.