ipart Function

public function ipart(x) result(i)

Integer part of floating-point number

Helper function for antialiasing calculations.

Arguments

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

Real number to truncate

Return Value integer