Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / C#

>=: practical reference

>=: practical reference: >= tests whether the left operand is greater than or equal under the type's ordering operator.

Version: C# language; verified against C# 14 reference

Syntax

left >= right

= tests whether the left operand is greater than or equal under the type's ordering operator.

Use it for an inclusive lower bound after confirming units.

Not every type has a total order, and overloads may define custom semantics.

Any floating-point comparison with NaN is false, even when the other value is a boundary.

The complete program actually uses >=; its exact expected stdout is True.

Examples

using System;
using System.Linq;
using System.Threading.Tasks;

Console.WriteLine(4 >= 4);

Result

True

The complete program actually uses `>=`; its exact expected stdout is `True`.

Sources