bge(x, y): Bitwise Less or Equal

Bitwise less than or equal to.

Declaration

Sintaxe

retval = ble(x, y);
elemental logical function ble(x, y)

Argumentos

x and y are integer input values. Both input values are of same kind.

Valores de retorno

The return value is of type logical and of the default kind.

Descrição

ble(x, y) calculates if one integer input values is bitwise less than or equal to other.

Tipos

Supported input types is integer of 32 bit and 64 bit size.

interface ble
    module procedure ble32, ble64
end interface

contains

interface
    elemental logical function ble32(x, y)
	integer(int32), intent(in) :: x, y
	end function

    elemental logical function ble64(x, y)
	integer(int64), intent(in) :: x, y
	end function
end interface

Exemplos

program intrinsics_ble
    implicit none
    print *, ble(10, 4)
	print *, ble(10, -4)
	print *, ble(10, 10)
end program

Resultado:

false
true
true

Veja Também

bgt, bge, blt.