K
kimiraikkonen
Hi,
Sorry if this is so basic but i wanted to know the correct way of
displaying a value's "only" integer part.
I mean; if i declare a value as integer which is actually a decimal
number, it returns upper value after .51 decimal part.
I mean;
Dim number as integer = 12.51 returns 13.
If i;
Dim number as integer = 12.49 returns 12 as well.
I want to return only the integer part (12) in every case without
depending on whatever decimal part is.
Thanks
Sorry if this is so basic but i wanted to know the correct way of
displaying a value's "only" integer part.
I mean; if i declare a value as integer which is actually a decimal
number, it returns upper value after .51 decimal part.
I mean;
Dim number as integer = 12.51 returns 13.
If i;
Dim number as integer = 12.49 returns 12 as well.
I want to return only the integer part (12) in every case without
depending on whatever decimal part is.
Thanks