ipart Function

public function ipart(x) result(i)

Integer part of floating-point number

Helper function for antialiasing calculations. @param x Real number to truncate @return i Integer part (truncated toward zero)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: x

Return Value integer