Decimal.IsInteger(Decimal) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines if a value represents an integral number.
public:
static bool IsInteger(System::Decimal value) = System::Numerics::INumberBase<System::Decimal>::IsInteger;
C#
public static bool IsInteger(decimal value);
static member IsInteger : decimal -> bool
Public Shared Function IsInteger (value As Decimal) As Boolean
- value
- Decimal
The value to be checked.
true
if value
is an integer; otherwise, false
.
This method correctly handles floating-point values and so 2.0
and 3.0
will return true
while 2.2
and 3.3
will return false
.
Produkt | Verzie |
---|---|
.NET | 7, 8, 9, 10 |
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: