fpart Function

public function fpart(x) result(f)

Fractional part of floating-point number

Returns the fractional component for antialiasing alpha calculations. Always returns positive value in range [0.0, 1.0). @param x Real number to extract fraction from @return f Fractional part (x - floor(x))

Arguments

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

Return Value real(kind=wp)