Skip to main content

fmod

Function fmod 

pub fn fmod(x: f64, y: f64) -> f64
Expand description

Returns the floating-point remainder of x divided by y, keeping the sign of x.

var remainder = fmod(7, 5.5) # remainder is 1.5

For the integer remainder operation, use the % operator.