-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Kani
Message 2 in Discussion

Hi,   what you are trying to do is "10.54" is a string that comes with a 
decimal value (i.e., after the '.')   When you replace 10.00 with --> 
f.ToString().Replace(".00",""); the final output for the convertion will be 
"10"  with no decimal ..... and it works fine ... in other cases it will still 
be having the decimal values like 10.54   so u can follow two methods : 1. 
Convert to float instead of int ... where in it requires no further changes to 
the code. 2. If u don't want to convert to float .. instead of replacing ".00" 
to "" find the value only till the decimal using the substring function and 
pass only the integer part of the number and convert it.     Regards, Srikanth 

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to