fldmod

fldmod(x, y)

The floored quotient and modulus after division. Equivalent to (fld(x,y), mod(x,y)).

Examples

julia> fldmod(5, 2)
(2,1)

julia> fldmod(5, -2)
(-3,-1)

julia> fldmod(-5, 2)
(-3,1)

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.

*Required Field
Details

Checking you are not a robot: