S
soni2926
Hi,
I have the following:
float.Parse(myproduct.Price.Value.ToString());
myproduct.Price.Value.ToString() returns $24.00 (with the $)
Is there anyway to do the above cast, I know the float.Parse(...)
doesn't like the $, as i keep getting an invalid cast exception, is
there anyway to get this to work? Do i just need to strip out the $
with substring, or is there a better way to cast it?
Thanks.
I have the following:
float.Parse(myproduct.Price.Value.ToString());
myproduct.Price.Value.ToString() returns $24.00 (with the $)
Is there anyway to do the above cast, I know the float.Parse(...)
doesn't like the $, as i keep getting an invalid cast exception, is
there anyway to get this to work? Do i just need to strip out the $
with substring, or is there a better way to cast it?
Thanks.