Debian Codegraph @

doc/src/intrinsics/bit/ble.md

raw
1 # bge(x, y): Bitwise Less or Equal
2
3 Bitwise less than or equal to.
4
5 ## Declaration
6
7 ### Syntax
8
9 ```fortran
10 retval = ble(x, y);
11 elemental logical function ble(x, y)
12 ```
13
14 ### Arguments
15
16 `x` and `y` are integer input values. Both input values are of same kind.
17
18 ### Return values
19
20 The return value is of type logical and of the default kind.
21
22 ## Description
23
24 `ble(x, y)` calculates if one integer input values is bitwise less than or
25 equal to other.
26
27 ## Types
28
29 Supported input types is integer of 32 bit and 64 bit size.
30
31 ```
32 interface ble
33 module procedure ble32, ble64
34 end interface
35
36 contains
37
38 interface
39 elemental logical function ble32(x, y)
40 integer(int32), intent(in) :: x, y
41 end function
42
43 elemental logical function ble64(x, y)
44 integer(int64), intent(in) :: x, y
45 end function
46 end interface
47 ```
48
49 ## Examples
50
51 ```fortran
52 program intrinsics_ble
53 implicit none
54 print *, ble(10, 4)
55 print *, ble(10, -4)
56 print *, ble(10, 10)
57 end program
58 ```
59
60 **Result:**
61
62 ```
63 false
64 true
65 true
66 ```
67
68 ## See Also
69
70 [bgt](bgt.md), [bge](bge.md), [blt](blt.md).