Debian Codegraph @

doc/src/intrinsics/bit/bge.md

raw
1 # bge(x, y): Bitwise Greater or Equal
2
3 Bitwise greater than or equal to.
4
5 ## Declaration
6
7 ### Syntax
8
9 ```fortran
10 retval = bge(x, y);
11 elemental logical function bge(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 `bge(x, y)` calculates if two integer input values is bitwise greater than or
25 equal to another.
26
27 ## Types
28
29 Supported input types is integer of 32 bit and 64 bit size.
30
31 ```
32 interface bge
33 module procedure bge32, bge64
34 end interface
35
36 contains
37
38 interface
39 elemental logical function bge32(x, y)
40 integer(int32), intent(in) :: x, y
41 end function
42
43 elemental logical function bge64(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_bge
53 implicit none
54 print *, bge(10, 4)
55 print *, bge(10, -4)
56 print *, bge(10, 10)
57 end program
58 ```
59
60 **Result:**
61
62 ```
63 true
64 false
65 true
66 ```
67
68 ## See Also
69
70 [bgt](bgt.md), [ble](ble.md), [blt](blt.md).