i want to get only the whole part of a decimal number.
how to do it in C#?
sample: 2.14=2
2.54=2
Decimal number
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
maffle14 pointsPosted Dec 11, 2006, 2:36 PM EST
Solitaire85 pointsPosted Dec 12, 2006, 3:51 PM EST
will return 2
1 short reply
Graham Shorey42 pointsPosted Dec 11, 2006, 3:41 AM EST