Math.Floor(val)
(there are also Ceiling and Round)
--
Alex Feinman
---
Visit
http://www.opennetcf.org
"Aaron" <(E-Mail Removed)> wrote in message
news:7Hxod.2468$(E-Mail Removed)...
> How can I cut a number off that I got from a textbox? I need to cut the
> number off at the decimal without rounding, i.e. 7.6958 would be just 7.
> I
> already have the number in a double format, just can't figure out how to
> cut
> it off.
>
> "Aaron" <(E-Mail Removed)> wrote in message
> news:Ylxod.2464$(E-Mail Removed)...
>> Why can I not convert text from a text box to a float value. The text
> will
>> always be in the form of 0.00. No matter what System.Convert method I
>> use
> I
>> get errors about the conversion that states cannot covert this to a that.
> I
>> could not find any help in the archives on this type of topic.
>>
>> Thanks
>>
>>
>
>